diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gz-transport | |
Diffstat (limited to 'vcpkg/ports/gz-transport')
| -rw-r--r-- | vcpkg/ports/gz-transport/portfile.cmake | 16 | ||||
| -rw-r--r-- | vcpkg/ports/gz-transport/uuid-osx.patch | 26 | ||||
| -rw-r--r-- | vcpkg/ports/gz-transport/vcpkg.json | 23 |
3 files changed, 65 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-transport/portfile.cmake b/vcpkg/ports/gz-transport/portfile.cmake new file mode 100644 index 0000000..317c045 --- /dev/null +++ b/vcpkg/ports/gz-transport/portfile.cmake @@ -0,0 +1,16 @@ +string(REGEX MATCH "^[0-9]+" VERSION_MAJOR "${VERSION}") +string(REGEX REPLACE "^gz-" "" PACKAGE_NAME "${PORT}") + +vcpkg_find_acquire_program(PYTHON3) + +ignition_modular_library( + NAME ${PACKAGE_NAME} + REF ${PORT}${VERSION_MAJOR}_${VERSION} + VERSION ${VERSION} + SHA512 e8e6efd5b9423aabe7d737cb999837468939aabaa11748de8e157499e455b2c0296660a2db3499dedd2f7e0b2081015aa4d2c090110c7519997e63124346a36c + OPTIONS + "-DPython3_EXECUTABLE=${PYTHON3}" + -DSKIP_PYBIND11=ON + PATCHES + uuid-osx.patch +) diff --git a/vcpkg/ports/gz-transport/uuid-osx.patch b/vcpkg/ports/gz-transport/uuid-osx.patch new file mode 100644 index 0000000..d51d9fe --- /dev/null +++ b/vcpkg/ports/gz-transport/uuid-osx.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8c69aa0e..428bd0ac 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,6 +111,8 @@ gz_find_package(CPPZMQ REQUIRED PRIVATE + if (MSVC) + set(skip_pybind11_default_value ON) + message (STATUS "UUID: Using Windows RPC UuidCreate function\n") ++elseif (APPLE) ++ message (STATUS "Use system uuid header") + else() + gz_find_package(UUID REQUIRED) + endif() +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 13101c50..340e0e82 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -21,7 +21,7 @@ target_include_directories(${PROJECT_LIBRARY_TARGET_NAME} + $<TARGET_PROPERTY:CPPZMQ::CPPZMQ,INTERFACE_INCLUDE_DIRECTORIES>) + + # Windows system library provides UUID +-if (NOT MSVC) ++if (NOT MSVC AND NOT APPLE) + target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} + PUBLIC + UUID::UUID diff --git a/vcpkg/ports/gz-transport/vcpkg.json b/vcpkg/ports/gz-transport/vcpkg.json new file mode 100644 index 0000000..d3fcd9a --- /dev/null +++ b/vcpkg/ports/gz-transport/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "gz-transport", + "version": "14.1.0", + "description": "Transport middleware for robotics", + "license": null, + "dependencies": [ + "cppzmq", + "gz-cmake", + "gz-msgs", + "gz-utils", + { + "name": "ignition-modularscripts", + "host": true + }, + { + "name": "libuuid", + "platform": "!windows & !osx" + }, + "protobuf", + "sqlite3", + "zeromq" + ] +} |