mirror of https://github.com/ArduPilot/ardupilot
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):
|
||||
vehicle = bld.path.name
|
||||
ardupilotwaf.vehicle_stlib(
|
||||
ardupilotwaf.ap_stlib(
|
||||
bld,
|
||||
name=vehicle + '_libs',
|
||||
vehicle=vehicle,
|
||||
|
|
|
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||
|
||||
def build(bld):
|
||||
vehicle = bld.path.name
|
||||
ardupilotwaf.vehicle_stlib(
|
||||
ardupilotwaf.ap_stlib(
|
||||
bld,
|
||||
name=vehicle + '_libs',
|
||||
vehicle=vehicle,
|
||||
|
|
|
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||
|
||||
def build(bld):
|
||||
vehicle = bld.path.name
|
||||
ardupilotwaf.vehicle_stlib(
|
||||
ardupilotwaf.ap_stlib(
|
||||
bld,
|
||||
name=vehicle + '_libs',
|
||||
vehicle=vehicle,
|
||||
|
|
|
@ -5,7 +5,7 @@ import ardupilotwaf
|
|||
|
||||
def build(bld):
|
||||
vehicle = bld.path.name
|
||||
ardupilotwaf.vehicle_stlib(
|
||||
ardupilotwaf.ap_stlib(
|
||||
bld,
|
||||
name=vehicle + '_libs',
|
||||
vehicle=vehicle,
|
||||
|
|
|
@ -124,13 +124,13 @@ def common_features(bld):
|
|||
features.append('static_linking')
|
||||
return features
|
||||
|
||||
def vehicle_stlib(bld, **kw):
|
||||
def ap_stlib(bld, **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:
|
||||
bld.fatal('Missing vehicle for vehicle_stlib')
|
||||
bld.fatal('Missing vehicle for ap_stlib')
|
||||
if 'libraries' not in kw:
|
||||
bld.fatal('Missing libraries for vehicle_stlib')
|
||||
bld.fatal('Missing libraries for ap_stlib')
|
||||
|
||||
sources = []
|
||||
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
|
||||
# dependency on the vehicles is reduced. Later we may consider
|
||||
# split into smaller pieces with well defined boundaries.
|
||||
ardupilotwaf.vehicle_stlib(
|
||||
ardupilotwaf.ap_stlib(
|
||||
bld,
|
||||
name='ap',
|
||||
vehicle='UNKNOWN',
|
||||
|
|
Loading…
Reference in New Issue