diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-22 04:12:13 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-22 04:12:13 +0000 |
| commit | 097e2d83635bb831ea131aea7cce10f712db2e8b (patch) | |
| tree | d2957104104c94ad13e4927c835f3fed3abe80d7 /0-openeb-vendor-avoid-vcstool.patch | |
| parent | 51dd7c52e0b5ce53ef3ed492f56bc902ce48a012 (diff) | |
automatic import of ros-humble-openeb-vendor
Diffstat (limited to '0-openeb-vendor-avoid-vcstool.patch')
| -rw-r--r-- | 0-openeb-vendor-avoid-vcstool.patch | 55 |
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" |
