waf: added --enable-networking and --enable-networking-tests

This commit is contained in:
Andrew Tridgell 2023-11-13 12:35:11 +11:00 committed by Tom Pittenger
parent df600e5582
commit c4cf3268cb
2 changed files with 13 additions and 2 deletions

View File

@ -148,6 +148,12 @@ class Board:
)
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()
# Always prepend so that arguments passed in the command line get
# the priority.

View File

@ -267,9 +267,14 @@ submodules at specific revisions.
help="Enables GPS logging")
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',
default=False,
help="Enables DroneCAN tests in sitl")