-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitted rosidl_generator_c and rosidl_generator_cpp in two: rosidl_g…
…enerator_x and rosidl_runtime_x (#442) * Splitted rosidl_generator_c and rosidl_generator_cpp in two: rosidl_generator_x and rosidl_runtime_x Signed-off-by: ahcorde <ahcorde@gmail.com> * added comments Signed-off-by: ahcorde <ahcorde@gmail.com> * rosidl_runtime_cpp removed rosidl_parser dependency Signed-off-by: ahcorde <ahcorde@gmail.com> * removed c++ flags Signed-off-by: ahcorde <ahcorde@gmail.com> * included more feedback Signed-off-by: ahcorde <ahcorde@gmail.com> * Restoring rosidl_typesupport_interface in the package.xml Signed-off-by: ahcorde <ahcorde@gmail.com> * rosidl_typesupport_interface from build_depend to build_export_depend Signed-off-by: ahcorde <ahcorde@gmail.com> * Restored tabs Signed-off-by: ahcorde <ahcorde@gmail.com> * rosidl_generator_c including headers in CMakeLists.txt Signed-off-by: ahcorde <ahcorde@gmail.com> * Fixed rosidl_generator_cpp cmakelists Signed-off-by: ahcorde <ahcorde@gmail.com> * Exported the right rosidl_generator and rosidl_runtime Signed-off-by: ahcorde <ahcorde@gmail.com> * replaced include_directories for target_include_directories Signed-off-by: ahcorde <ahcorde@gmail.com> * moved rosidl_generator_x dependencies from build_depend to test_depend Signed-off-by: ahcorde <ahcorde@gmail.com> * Removed member_of_group rosidl_runtime_packages from rosidl_generator_c Signed-off-by: ahcorde <ahcorde@gmail.com> * changed target_include_libraries and directory for ament_target_dependencies Signed-off-by: ahcorde <ahcorde@gmail.com> * restored add dependency in rosidl_generator_cpp Signed-off-by: ahcorde <ahcorde@gmail.com> * Removed rosidl_generator_x from rosidl_typesupport_introspection_x Signed-off-by: ahcorde <ahcorde@gmail.com> * Removed comments Signed-off-by: ahcorde <ahcorde@gmail.com> * Restored C standard and compiler flags Signed-off-by: ahcorde <ahcorde@gmail.com> * keep the originally used dependency type Signed-off-by: ahcorde <ahcorde@gmail.com> * Fixed rosidl_runtime_c cmakelists.txt Signed-off-by: ahcorde <ahcorde@gmail.com> * Removed ament_export_dependencies rosidl_cmake Signed-off-by: ahcorde <ahcorde@gmail.com> * fixed test_msg_builder directories Signed-off-by: ahcorde <ahcorde@gmail.com>
- Loading branch information
Showing
41 changed files
with
213 additions
and
66 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
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
project(rosidl_runtime_c C) | ||
|
||
# Default to C11 | ||
if(NOT CMAKE_C_STANDARD) | ||
set(CMAKE_C_STANDARD 11) | ||
endif() | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake_ros REQUIRED) | ||
find_package(rosidl_typesupport_interface REQUIRED) | ||
|
||
include_directories(include) | ||
add_library(${PROJECT_NAME} | ||
"src/message_bounds.c" | ||
"src/message_type_support.c" | ||
"src/primitives_sequence_functions.c" | ||
"src/service_type_support.c" | ||
"src/string_functions.c" | ||
"src/u16string_functions.c" | ||
) | ||
ament_target_dependencies(${PROJECT_NAME} | ||
"rosidl_typesupport_interface") | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
set_target_properties(${PROJECT_NAME} PROPERTIES | ||
COMPILE_OPTIONS -Wall -Wextra -Wpedantic) | ||
endif() | ||
if(WIN32) | ||
target_compile_definitions(${PROJECT_NAME} | ||
PRIVATE "ROSIDL_GENERATOR_C_BUILDING_DLL") | ||
endif() | ||
|
||
ament_export_dependencies(rosidl_typesupport_interface) | ||
ament_export_include_directories(include) | ||
ament_export_libraries(${PROJECT_NAME}) | ||
|
||
ament_index_register_resource("rosidl_runtime_packages") | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
install( | ||
DIRECTORY include/ | ||
DESTINATION include | ||
) | ||
install( | ||
TARGETS ${PROJECT_NAME} | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
) | ||
|
||
ament_package() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>rosidl_runtime_c</name> | ||
<version>0.8.2</version> | ||
<description>Generate the ROS interfaces in C.</description> | ||
<maintainer email="william@osrfoundation.org">William Woodall</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
<buildtool_depend>ament_cmake_ros</buildtool_depend> | ||
|
||
<build_depend>rosidl_typesupport_interface</build_depend> | ||
|
||
<buildtool_export_depend>ament_cmake</buildtool_export_depend> | ||
|
||
<build_export_depend>rosidl_typesupport_interface</build_export_depend> | ||
|
||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
|
||
<member_of_group>rosidl_runtime_packages</member_of_group> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
project(rosidl_runtime_cpp) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
ament_export_include_directories(include) | ||
|
||
ament_index_register_resource("rosidl_runtime_packages") | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
install( | ||
DIRECTORY include/ | ||
DESTINATION include | ||
) | ||
|
||
ament_package() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>rosidl_runtime_cpp</name> | ||
<version>0.8.2</version> | ||
<description>Generate the ROS interfaces in C++.</description> | ||
<maintainer email="dthomas@osrfoundation.org">Dirk Thomas</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<buildtool_export_depend>ament_cmake</buildtool_export_depend> | ||
|
||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
|
||
<member_of_group>rosidl_runtime_packages</member_of_group> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
Oops, something went wrong.