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
pull/9572/head
Eli Schwartz 3 years ago committed by Nirbheek Chauhan
parent f873b9ae2f
commit 680c6bb012
  1. 2
      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)

Loading…
Cancel
Save