waf: ardupilotwaf: rename vehicle_stlib to ap_stlib

That function is not only for vehicles.
This commit is contained in:
Gustavo Jose de Sousa 2016-01-21 10:53:08 -02:00 committed by Lucas De Marchi
parent a35c0d48b0
commit cf432e8b3e
6 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

@ -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',