mirror of https://github.com/ArduPilot/ardupilot
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:
parent
5816dcba03
commit
ce294e841c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue