mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
857bccdad0
* Add gazebo11 port * [sdformat9] Use external tinyxml on Windows * Update versions * Use newer vcpkg functions * Fix sdformat9 * Update versions * Try fixing gazebo * Copy extra ogre dlls * Update gazebo ref * Update versions * Fix ogre dll dir * Update version date * Update versions * Update versions * Add licenses * Update versions * Rename to gazebo * Update versions * Update versions * Apply suggestions from code review Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/gazebo/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Make pkgconf a host dependency * Update versions * Copy PDBs * Update versions * Change to normal installed directory * Update versions Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
43 lines
1.2 KiB
CMake
43 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO osrf/sdformat
|
|
REF sdformat9_9.4.0
|
|
SHA512 b7ed458a5a9ba5b5dcf457d3e0c9de0bca3d514a6870aa977a00a84f8a3b8d1bd21f3b437c0651af7f0cc9b9c6c8b905c968525194605b334ab62280b9d55b0e
|
|
HEAD_REF sdf9
|
|
PATCHES
|
|
fix-dependency-urdfdom.patch
|
|
fix-quote.patch
|
|
no-absolute.patch
|
|
use-external-tinyxml-windows.patch
|
|
)
|
|
|
|
# Ruby is required by the sdformat build process
|
|
vcpkg_find_acquire_program(RUBY)
|
|
get_filename_component(RUBY_PATH ${RUBY} DIRECTORY)
|
|
set(_path $ENV{PATH})
|
|
vcpkg_add_to_path("${RUBY_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
-DUSE_INTERNAL_URDF=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
# Restore original path
|
|
set(ENV{PATH} ${_path})
|
|
|
|
# Fix cmake targets and pkg-config file location
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/sdformat9")
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Remove debug files
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/cmake"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|