Vala .d and .vapi should be named after the first vala source file in the target rather than target name.

pull/373/head
Jussi Pakkanen 9 years ago
parent 6d55275f6c
commit 9573ec60ad
  1. 4
      mesonbuild/ninjabackend.py

@ -810,7 +810,9 @@ int dummy;
for s in src: for s in src:
if s.endswith('.vala'): if s.endswith('.vala'):
vala_input_files.append(s.rel_to_builddir(self.build_to_src)) vala_input_files.append(s.rel_to_builddir(self.build_to_src))
namebase = os.path.splitext(os.path.split(vala_input_files[0])[1])[0] if len(src) == 0:
raise InvalidArguments('Vala library has no Vala source files.')
namebase = os.path.splitext(os.path.split(src[0].fname)[1])[0]
hname = namebase + '.h' hname = namebase + '.h'
vapiname = namebase + '.vapi' vapiname = namebase + '.vapi'
outputs = [vapiname] outputs = [vapiname]

Loading…
Cancel
Save