waf: ardupilotwaf: prefix build context methods with ap_

It helps to distinguish between things from waf and things from ardupilotwaf.
This commit is contained in:
Gustavo Jose de Sousa 2016-01-22 21:00:13 +00:00 committed by Lucas De Marchi
parent a2d2661765
commit c2e3f05dbf
86 changed files with 90 additions and 90 deletions

View File

@ -6,7 +6,7 @@ def build(bld):
bld.ap_stlib(
name=vehicle + '_libs',
vehicle=vehicle,
libraries=bld.common_vehicle_libraries() + [
libraries=bld.ap_common_vehicle_libraries() + [
'APM_Control',
'AP_Arming',
'AP_Camera',

View File

@ -6,7 +6,7 @@ def build(bld):
bld.ap_stlib(
name=vehicle + '_libs',
vehicle=vehicle,
libraries=bld.common_vehicle_libraries() + [
libraries=bld.ap_common_vehicle_libraries() + [
'PID',
],
use='mavlink',

View File

@ -6,7 +6,7 @@ def build(bld):
bld.ap_stlib(
name=vehicle + '_libs',
vehicle=vehicle,
libraries=bld.common_vehicle_libraries() + [
libraries=bld.ap_common_vehicle_libraries() + [
'AP_ADSB',
'AC_AttitudeControl',
'AC_Fence',

View File

@ -6,7 +6,7 @@ def build(bld):
bld.ap_stlib(
name=vehicle + '_libs',
vehicle=vehicle,
libraries=bld.common_vehicle_libraries() + [
libraries=bld.ap_common_vehicle_libraries() + [
'APM_Control',
'APM_OBC',
'AP_ADSB',

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -65,7 +65,7 @@ IGNORED_AP_LIBRARIES = [
]
@conf
def get_all_libraries(bld):
def ap_get_all_libraries(bld):
libraries = []
for lib_node in bld.srcnode.ant_glob('libraries/*', dir=True):
name = lib_node.name
@ -78,7 +78,7 @@ def get_all_libraries(bld):
return libraries
@conf
def common_vehicle_libraries(bld):
def ap_common_vehicle_libraries(bld):
return COMMON_VEHICLE_DEPENDENT_LIBRARIES
@conf
@ -111,7 +111,7 @@ def ap_program(bld, blddestdir='bin',
)
@conf
def example(bld, **kw):
def ap_example(bld, **kw):
kw['blddestdir'] = 'examples'
ap_program(bld, **kw)
@ -159,7 +159,7 @@ def ap_stlib(bld, **kw):
bld.stlib(**kw)
@conf
def find_tests(bld, use=[]):
def ap_find_tests(bld, use=[]):
if not bld.env.HAS_GTEST:
return
@ -185,7 +185,7 @@ def find_tests(bld, use=[]):
)
@conf
def find_benchmarks(bld, use=[]):
def ap_find_benchmarks(bld, use=[]):
if not bld.env.HAS_GBENCHMARK:
return

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -5,6 +5,6 @@ def build(bld):
if bld.env.BOARD in ['sitl']:
return
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.find_benchmarks(
bld.ap_find_benchmarks(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.find_benchmarks(
bld.ap_find_benchmarks(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.find_tests(
bld.ap_find_tests(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -5,6 +5,6 @@ def build(bld):
# TODO: Test code doesn't build. Fix or delete the test.
return
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -5,6 +5,6 @@ def build(bld):
# TODO: Test code doesn't build. Fix or delete the test.
return
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -5,6 +5,6 @@ def build(bld):
# TODO: Test code doesn't build. Fix or delete the test.
return
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -2,6 +2,6 @@
# encoding: utf-8
def build(bld):
bld.example(
bld.ap_example(
use='ap',
)

View File

@ -141,7 +141,7 @@ def build(bld):
bld.ap_stlib(
name='ap',
vehicle='UNKNOWN',
libraries=bld.get_all_libraries(),
libraries=bld.ap_get_all_libraries(),
use='mavlink',
)
# TODO: Currently each vehicle also generate its own copy of the