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

This commit is contained in:
Jussi Pakkanen 2016-01-21 21:38:51 +02:00
parent 6d55275f6c
commit 9573ec60ad
1 changed files with 3 additions and 1 deletions

View File

@ -810,7 +810,9 @@ int dummy;
for s in src:
if s.endswith('.vala'):
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'
vapiname = namebase + '.vapi'
outputs = [vapiname]