aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gz-tools
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/gz-tools')
-rw-r--r--vcpkg/ports/gz-tools/portfile.cmake15
-rw-r--r--vcpkg/ports/gz-tools/vcpkg.json15
2 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-tools/portfile.cmake b/vcpkg/ports/gz-tools/portfile.cmake
new file mode 100644
index 0000000..121c531
--- /dev/null
+++ b/vcpkg/ports/gz-tools/portfile.cmake
@@ -0,0 +1,15 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+string(REGEX MATCH "^[0-9]+" VERSION_MAJOR ${VERSION})
+string(REGEX MATCH "^gz-([a-z-]+)" MATCHED_VALUE ${PORT})
+set(PACKAGE_NAME ${CMAKE_MATCH_1})
+
+ignition_modular_library(NAME ${PACKAGE_NAME}
+ REF ${PORT}${VERSION_MAJOR}_${VERSION}
+ VERSION ${VERSION}
+ SHA512 0dc78d30876f2091c5a545feb70e769d65967c6f77bca7bc17aec62a5069601657fd4bf03f7a913ef5ad8bb58ca8aba4b2b911c6d4de4d46f827edb609acd61c
+ PATCHES
+ )
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
diff --git a/vcpkg/ports/gz-tools/vcpkg.json b/vcpkg/ports/gz-tools/vcpkg.json
new file mode 100644
index 0000000..487dd69
--- /dev/null
+++ b/vcpkg/ports/gz-tools/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "gz-tools",
+ "version": "2.0.1",
+ "description": "Gazebo tools provide the ign command line tool that accepts multiple subcommands.",
+ "homepage": "https://gazebosim.org",
+ "license": "Apache-2.0",
+ "supports": "!(arm & windows) & !uwp",
+ "dependencies": [
+ "gz-cmake",
+ {
+ "name": "ignition-modularscripts",
+ "host": true
+ }
+ ]
+}