aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-11-14 11:28:13 -0500
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2021-11-15 15:43:43 +0530
commit680c6bb012c4566935d2589565ef4d2031442307 (patch)
tree458c92f8f4993fa1d177cc4263b5e3a8e7526ee1
parentf873b9ae2f799459d050847a16b6f9c23d1eb0b4 (diff)
downloadmeson-680c6bb012c4566935d2589565ef4d2031442307.zip
meson-680c6bb012c4566935d2589565ef4d2031442307.tar.gz
meson-680c6bb012c4566935d2589565ef4d2031442307.tar.bz2
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
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
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)