mirror of https://github.com/ArduPilot/ardupilot
waf: added --enable-networking and --enable-networking-tests
This commit is contained in:
parent
df600e5582
commit
c4cf3268cb
|
@ -148,6 +148,12 @@ class Board:
|
||||||
)
|
)
|
||||||
cfg.msg("Enabled custom controller", 'no', color='YELLOW')
|
cfg.msg("Enabled custom controller", 'no', color='YELLOW')
|
||||||
|
|
||||||
|
if cfg.options.enable_networking:
|
||||||
|
env.CXXFLAGS += ['-DAP_NETWORKING_ENABLED=1']
|
||||||
|
|
||||||
|
if cfg.options.enable_networking_tests:
|
||||||
|
env.CXXFLAGS += ['-DAP_NETWORKING_TESTS_ENABLED=1']
|
||||||
|
|
||||||
d = env.get_merged_dict()
|
d = env.get_merged_dict()
|
||||||
# Always prepend so that arguments passed in the command line get
|
# Always prepend so that arguments passed in the command line get
|
||||||
# the priority.
|
# the priority.
|
||||||
|
|
9
wscript
9
wscript
|
@ -267,9 +267,14 @@ submodules at specific revisions.
|
||||||
help="Enables GPS logging")
|
help="Enables GPS logging")
|
||||||
|
|
||||||
g.add_option('--enable-dds', action='store_true',
|
g.add_option('--enable-dds', action='store_true',
|
||||||
help="Enable the dds client to connect with ROS2/DDS"
|
help="Enable the dds client to connect with ROS2/DDS")
|
||||||
)
|
|
||||||
|
|
||||||
|
g.add_option('--enable-networking', action='store_true',
|
||||||
|
help="Enable the networking code")
|
||||||
|
|
||||||
|
g.add_option('--enable-networking-tests', action='store_true',
|
||||||
|
help="Enable the networking test code")
|
||||||
|
|
||||||
g.add_option('--enable-dronecan-tests', action='store_true',
|
g.add_option('--enable-dronecan-tests', action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help="Enables DroneCAN tests in sitl")
|
help="Enables DroneCAN tests in sitl")
|
||||||
|
|
Loading…
Reference in New Issue