From 680c6bb012c4566935d2589565ef4d2031442307 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 14 Nov 2021 11:28:13 -0500 Subject: valac dependencies: use the canonical list of vala source names Don't hardcode one of the three possible source types, thus ignoring the needed vapis for dependencies using .gs or .vapi sources. Fixes #9544 --- mesonbuild/backend/ninjabackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 2ababd2..a1d3e50 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1402,7 +1402,7 @@ class NinjaBackend(backends.Backend): for i in dep.sources: if hasattr(i, 'fname'): i = i.fname - if i.endswith('vala'): + if i.split('.')[-1] in compilers.lang_suffixes['vala']: vapiname = dep.vala_vapi fullname = os.path.join(self.get_target_dir(dep), vapiname) result.add(fullname) -- cgit v1.1