mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 11:51:20 +01:00
vala: support *.vapi as input files
Vala compiler can use *.vapi files also as input files alongside *.vala files. If you build a library, these vapi files are not included ín resulting *.deps files and are, therefore, suitable for internal purposes. Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
This commit is contained in:
parent
5be20feee2
commit
585d7876f1
@ -251,6 +251,15 @@ def vala_file(self, node):
|
||||
valatask.outputs.append(c_node)
|
||||
self.source.append(c_node)
|
||||
|
||||
@extension('.vapi')
|
||||
def vapi_file(self, node):
|
||||
try:
|
||||
valatask = self.valatask
|
||||
except AttributeError:
|
||||
valatask = self.valatask = self.create_task('valac')
|
||||
self.init_vala_task()
|
||||
valatask.inputs.append(node)
|
||||
|
||||
@conf
|
||||
def find_valac(self, valac_name, min_version):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user