Skip to content

Commit

Permalink
ros2GH-14 Refactor rosbag_storage vendor package
Browse files Browse the repository at this point in the history
- Improve toplevel CMakeLists
- Put all patches into a resource subfolder
  • Loading branch information
Martin-Idel-SI committed Dec 6, 2018
1 parent 20bbce9 commit 9d7b2c3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ros1_rosbag_storage_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ ExternalProject_Add(ros1_rosbag_storage
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/sources
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/rosbag_install
PATCH_COMMAND
${git_apply} ${CMAKE_CURRENT_SOURCE_DIR}/rosbag1_encryption_patch.diff &&
${git_apply} ${CMAKE_CURRENT_SOURCE_DIR}/rosbag1_for_ros2_patch.diff &&
${git_apply} ${CMAKE_CURRENT_SOURCE_DIR}/rosbag1_ament_patch.diff &&
${git_apply} ${CMAKE_CURRENT_SOURCE_DIR}/resources/rosbag1_encryption_patch.diff &&
${git_apply} ${CMAKE_CURRENT_SOURCE_DIR}/resources/rosbag1_for_ros2_patch.diff &&
${git_apply} ${CMAKE_CURRENT_SOURCE_DIR}/resources/rosbag1_ament_patch.diff &&
${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmake/CMakeLists.txt.in ${CMAKE_CURRENT_BINARY_DIR}/sources/CMakeLists.txt
)

Expand Down
5 changes: 3 additions & 2 deletions ros1_rosbag_storage_vendor/cmake/CMakeLists.txt.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# rosbag_storage does not contain a toplevel CMakeLists so colcon gets confused
# We download ros_comm, which does not contain a toplevel CMakeLists so colcon can't find the entry
# point and claims there is nothing to build.
# This is also an opportunity, because we want to only build rosbag_storage anyways
cmake_minimum_required(VERSION 3.5)
add_subdirectory(tools/rosbag_storage)
add_subdirectory(tools/rosbag_storage)

0 comments on commit 9d7b2c3

Please sign in to comment.