mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 07:19:00 +08:00
[ignition-tools] new port (#27078)
* Add ignition-tools * Fix installation * add supports field * version * typo * version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
This commit is contained in:
parent
472e9f1a8b
commit
ef91cf7b8d
43
ports/ignition-tools/portfile.cmake
Normal file
43
ports/ignition-tools/portfile.cmake
Normal file
@ -0,0 +1,43 @@
|
||||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO gazebosim/gz-tools
|
||||
REF ignition-tools_1.5.0
|
||||
SHA512 3e8267fc16295e269a1fb4867235bca858fea0f5f048831b0dc5f087907897042edb0f4757aef1bad824f3f109959286a441ca5315b6815c557e7deba9f8d151
|
||||
HEAD_REF ign-tools1
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# Fix cmake targets and pkg-config file location
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ignition-tools")
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
file(GLOB DEBUG_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*")
|
||||
file(COPY ${DEBUG_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}")
|
||||
endif()
|
||||
|
||||
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||
file(GLOB RELEASE_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*")
|
||||
file(COPY ${RELEASE_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/bin"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
18
ports/ignition-tools/vcpkg.json
Normal file
18
ports/ignition-tools/vcpkg.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "ignition-tools",
|
||||
"version": "1.5.0",
|
||||
"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": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -3012,6 +3012,10 @@
|
||||
"baseline": "1.1.0",
|
||||
"port-version": 2
|
||||
},
|
||||
"ignition-tools": {
|
||||
"baseline": "1.5.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"ignition-transport4": {
|
||||
"baseline": "4.0.0",
|
||||
"port-version": 6
|
||||
|
9
versions/i-/ignition-tools.json
Normal file
9
versions/i-/ignition-tools.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "5567f256c2183bacba71d78d26362a1b76021bcf",
|
||||
"version": "1.5.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user