mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: ardupilotwaf: rename vehicle_stlib to ap_stlib
That function is not only for vehicles.
This commit is contained in:
parent
a35c0d48b0
commit
cf432e8b3e
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
vehicle = bld.path.name
|
vehicle = bld.path.name
|
||||||
ardupilotwaf.vehicle_stlib(
|
ardupilotwaf.ap_stlib(
|
||||||
bld,
|
bld,
|
||||||
name=vehicle + '_libs',
|
name=vehicle + '_libs',
|
||||||
vehicle=vehicle,
|
vehicle=vehicle,
|
||||||
|
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
vehicle = bld.path.name
|
vehicle = bld.path.name
|
||||||
ardupilotwaf.vehicle_stlib(
|
ardupilotwaf.ap_stlib(
|
||||||
bld,
|
bld,
|
||||||
name=vehicle + '_libs',
|
name=vehicle + '_libs',
|
||||||
vehicle=vehicle,
|
vehicle=vehicle,
|
||||||
|
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
vehicle = bld.path.name
|
vehicle = bld.path.name
|
||||||
ardupilotwaf.vehicle_stlib(
|
ardupilotwaf.ap_stlib(
|
||||||
bld,
|
bld,
|
||||||
name=vehicle + '_libs',
|
name=vehicle + '_libs',
|
||||||
vehicle=vehicle,
|
vehicle=vehicle,
|
||||||
|
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
vehicle = bld.path.name
|
vehicle = bld.path.name
|
||||||
ardupilotwaf.vehicle_stlib(
|
ardupilotwaf.ap_stlib(
|
||||||
bld,
|
bld,
|
||||||
name=vehicle + '_libs',
|
name=vehicle + '_libs',
|
||||||
vehicle=vehicle,
|
vehicle=vehicle,
|
||||||
|
@ -124,13 +124,13 @@ def common_features(bld):
|
|||||||
features.append('static_linking')
|
features.append('static_linking')
|
||||||
return features
|
return features
|
||||||
|
|
||||||
def vehicle_stlib(bld, **kw):
|
def ap_stlib(bld, **kw):
|
||||||
if 'name' not in kw:
|
if 'name' not in kw:
|
||||||
bld.fatal('Missing name for vehicle_stlib')
|
bld.fatal('Missing name for ap_stlib')
|
||||||
if 'vehicle' not in kw:
|
if 'vehicle' not in kw:
|
||||||
bld.fatal('Missing vehicle for vehicle_stlib')
|
bld.fatal('Missing vehicle for ap_stlib')
|
||||||
if 'libraries' not in kw:
|
if 'libraries' not in kw:
|
||||||
bld.fatal('Missing libraries for vehicle_stlib')
|
bld.fatal('Missing libraries for ap_stlib')
|
||||||
|
|
||||||
sources = []
|
sources = []
|
||||||
libraries = kw['libraries'] + bld.env.AP_LIBRARIES
|
libraries = kw['libraries'] + bld.env.AP_LIBRARIES
|
||||||
|
2
wscript
2
wscript
@ -137,7 +137,7 @@ def build(bld):
|
|||||||
# the tools and examples. This is the first step until the
|
# the tools and examples. This is the first step until the
|
||||||
# dependency on the vehicles is reduced. Later we may consider
|
# dependency on the vehicles is reduced. Later we may consider
|
||||||
# split into smaller pieces with well defined boundaries.
|
# split into smaller pieces with well defined boundaries.
|
||||||
ardupilotwaf.vehicle_stlib(
|
ardupilotwaf.ap_stlib(
|
||||||
bld,
|
bld,
|
||||||
name='ap',
|
name='ap',
|
||||||
vehicle='UNKNOWN',
|
vehicle='UNKNOWN',
|
||||||
|
Loading…
Reference in New Issue
Block a user