waf: support building headers from uavcan_vendor_specific_types directory

This commit is contained in:
Jonathan Challinger 2018-07-10 14:14:12 -07:00 committed by Randy Mackay
parent 67fcd773a6
commit fea82dc360
2 changed files with 3 additions and 4 deletions

View File

@ -21,11 +21,10 @@ class uavcangen(Task.Task):
out = self.env.get_flat('OUTPUT_DIR')
src = self.env.get_flat('SRC')
dsdlc = self.env.get_flat("DSDL_COMPILER")
input_dir = os.path.dirname(self.inputs[0].abspath())
ret = self.exec_command(['{}'.format(python),
'{}'.format(dsdlc),
'{}'.format(input_dir),
'-O{}'.format(out)])
'-O{}'.format(out)] + [x.abspath() for x in self.inputs])
if ret != 0:
# ignore if there was a signal to the interpreter rather

View File

@ -512,7 +512,7 @@ def _build_dynamic_sources(bld):
if bld.get_board().with_uavcan or bld.env.HAL_WITH_UAVCAN==True:
bld(
features='uavcangen',
source=bld.srcnode.ant_glob('modules/uavcan/dsdl/uavcan/**/*.uavcan'),
source=bld.srcnode.ant_glob('modules/uavcan/dsdl/* uavcan_vendor_specific_types/*', dir=True, src=False),
output_dir='modules/uavcan/libuavcan/include/dsdlc_generated',
name='uavcan',
export_includes=[