forked from mavlink/MAVSDK
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake/tools: generate grpc_server, list plugins
This is refactoring around the way the plugins are built into the mavsdk library as well as the mavsdk_server executable. The changes contain the following: - Auto-generation of grpc_server.h and grpc_server.cpp from jinja2 templates. This means that the mavsdk_server is always in sync and new plugins don't have to be added to it manually anymore. - As a side effects this removes the ugly rewriting of CMakeLists.txt based on the auto-generated plugins and instead uses a separate plugins.txt file that is used throughout. - The cmake variable ENABLED_PLUGINS can be used to manually select the plugins to be built for users requiring to do so.
- Loading branch information
Showing
10 changed files
with
780 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,8 @@ | ||
add_subdirectory(action) | ||
add_subdirectory(action_server) | ||
add_subdirectory(calibration) | ||
add_subdirectory(camera) | ||
add_subdirectory(camera_server) | ||
add_subdirectory(component_information) | ||
add_subdirectory(component_information_server) | ||
add_subdirectory(failure) | ||
add_subdirectory(follow_me) | ||
add_subdirectory(ftp) | ||
add_subdirectory(geofence) | ||
add_subdirectory(gimbal) | ||
add_subdirectory(info) | ||
add_subdirectory(log_files) | ||
add_subdirectory(manual_control) | ||
foreach(plugin ${ENABLED_PLUGINS}) | ||
add_subdirectory(${plugin}) | ||
endforeach() | ||
|
||
# Don't forget about mavlink_passthrough which is not auto-generated. | ||
add_subdirectory(mavlink_passthrough) | ||
add_subdirectory(mission) | ||
add_subdirectory(mission_raw) | ||
add_subdirectory(mission_raw_server) | ||
add_subdirectory(mocap) | ||
add_subdirectory(offboard) | ||
add_subdirectory(param) | ||
add_subdirectory(param_server) | ||
add_subdirectory(server_utility) | ||
add_subdirectory(shell) | ||
add_subdirectory(telemetry) | ||
add_subdirectory(tracking_server) | ||
add_subdirectory(transponder) | ||
add_subdirectory(rtk) | ||
add_subdirectory(telemetry_server) | ||
add_subdirectory(tune) | ||
|
||
set(UNIT_TEST_SOURCES ${UNIT_TEST_SOURCES} PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.