waf: ardupilotwaf: make vehicle_stlib pass **kw to bld.stlib

That allows users to pass more parameters to bld.stlib.
This commit is contained in:
Gustavo Jose de Sousa 2016-01-13 18:29:22 -02:00 committed by Andrew Tridgell
parent 5816dcba03
commit ce294e841c
1 changed files with 5 additions and 8 deletions

View File

@ -129,15 +129,12 @@ def vehicle_stlib(bld, **kw):
lib_sources = lib_node.ant_glob(SOURCE_EXTS + UTILITY_SOURCE_EXTS) lib_sources = lib_node.ant_glob(SOURCE_EXTS + UTILITY_SOURCE_EXTS)
sources.extend(lib_sources) sources.extend(lib_sources)
name = kw['name'] kw['source'] = sources
vehicle = kw['vehicle'] kw['target'] = kw['name']
kw['defines'] = _get_legacy_defines(kw['vehicle'])
kw['idx'] = _get_next_idx()
bld.stlib( bld.stlib(**kw)
source=sources,
target=name,
defines=_get_legacy_defines(vehicle),
idx=_get_next_idx(),
)
def find_tests(bld, use=[]): def find_tests(bld, use=[]):
if not bld.env.HAS_GTEST: if not bld.env.HAS_GTEST: