mirror of https://github.com/ArduPilot/ardupilot
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:
parent
a2d2661765
commit
c2e3f05dbf
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -5,6 +5,6 @@ def build(bld):
|
|||
if bld.env.BOARD in ['sitl']:
|
||||
return
|
||||
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.find_benchmarks(
|
||||
bld.ap_find_benchmarks(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.find_benchmarks(
|
||||
bld.ap_find_benchmarks(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.find_tests(
|
||||
bld.ap_find_tests(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -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',
|
||||
)
|
||||
|
|
|
@ -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',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -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',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# encoding: utf-8
|
||||
|
||||
def build(bld):
|
||||
bld.example(
|
||||
bld.ap_example(
|
||||
use='ap',
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue