Skip to content

Commit

Permalink
waf: added --enable-networking and --enable-networking-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge authored and magicrub committed Nov 15, 2023
1 parent df600e5 commit c4cf326
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ def srcpath(path):
)
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.
Expand Down
9 changes: 7 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c4cf326

Please sign in to comment.