summaryrefslogtreecommitdiff
path: root/0-openeb-vendor-avoid-vcstool.patch
diff options
context:
space:
mode:
Diffstat (limited to '0-openeb-vendor-avoid-vcstool.patch')
-rw-r--r--0-openeb-vendor-avoid-vcstool.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/0-openeb-vendor-avoid-vcstool.patch b/0-openeb-vendor-avoid-vcstool.patch
new file mode 100644
index 0000000..5ff53dc
--- /dev/null
+++ b/0-openeb-vendor-avoid-vcstool.patch
@@ -0,0 +1,55 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,11 +18,7 @@
+ project(openeb_vendor CXX)
+
+ find_package(ament_cmake REQUIRED)
+-find_package(ament_cmake_vendor_package REQUIRED)
+-
+-if (ament_cmake_vendor_package_VERSION VERSION_GREATER_EQUAL 2.0.0)
+- ament_add_default_options()
+-endif()
++include(ExternalProject)
+
+ option(
+ BUILD_SHARED_LIBS
+@@ -31,18 +27,29 @@
+ unless the library was explicitly added as a static library."
+ ON)
+
+-ament_vendor(openeb_vendor
+- VCS_URL https://github.com/ros-event-camera/openeb.git
+- VCS_VERSION 5.2.0-gcc-15.2-ros2
+- GLOBAL_HOOK
+-# PATCHES patches
++set(_vendor_install_dir "${CMAKE_CURRENT_BINARY_DIR}/openeb_vendor-prefix/install")
++
++ExternalProject_Add(openeb_vendor_ext
++ URL ${CMAKE_CURRENT_SOURCE_DIR}/openeb-5.2.0-gcc-15.2-ros2.tar.gz
++ INSTALL_DIR ${_vendor_install_dir}
++ UPDATE_DISCONNECTED TRUE
+ CMAKE_ARGS
+- -DCOMPILE_PLAYER:BOOL=OFF
+- -DCOMPILE_PYTHON3_BINDINGS:BOOL=OFF
+- -DUDEV_RULES_SYSTEM_INSTALL:BOOL=OFF
+- -DHDF5_DISABLED=ON
++ -DCMAKE_STAGING_PREFIX=${_vendor_install_dir}
++ -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/opt/${PROJECT_NAME}
++ -Wno-dev
++ -DCOMPILE_PLAYER:BOOL=OFF
++ -DCOMPILE_PYTHON3_BINDINGS:BOOL=OFF
++ -DUDEV_RULES_SYSTEM_INSTALL:BOOL=OFF
++ -DHDF5_DISABLED=ON
++ -DBUILD_TESTING=OFF
++ -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
++)
++
++install(
++ DIRECTORY "${_vendor_install_dir}/"
++ DESTINATION "opt/${PROJECT_NAME}"
++ USE_SOURCE_PERMISSIONS
+ )
+-# PATCHES patches
+
+ ament_package(
+ CONFIG_EXTRAS "openeb_vendor-extras.cmake.in"