[gperftools] no absolute paths (#21270)

This commit is contained in:
autoantwort 2021-11-10 19:51:16 +01:00 committed by GitHub
parent ff3e120987
commit 494e84e74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 13 deletions

View File

@ -9,7 +9,7 @@ vcpkg_from_github(
)
if(VCPKG_TARGET_IS_WINDOWS)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
if(override IN_LIST FEATURES)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
@ -24,22 +24,21 @@ if(VCPKG_TARGET_IS_WINDOWS)
tools GPERFTOOLS_BUILD_TOOLS
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
${FEATURE_OPTIONS}
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(GLOB gperf_public_headers ${CURRENT_PACKAGES_DIR}/include/gperftools/*.h)
file(GLOB gperf_public_headers "${CURRENT_PACKAGES_DIR}/include/gperftools/*.h")
foreach(gperf_header ${gperf_public_headers})
vcpkg_replace_string(${gperf_header} "__declspec(dllimport)" "")
@ -70,14 +69,16 @@ else()
endif()
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/share
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
# https://github.com/microsoft/vcpkg/pull/8750#issuecomment-625590773
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
vcpkg_fixup_pkgconfig()
endif()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,10 +1,17 @@
{
"name": "gperftools",
"version-string": "2019-09-02",
"port-version": 1,
"version-date": "2019-09-02",
"port-version": 2,
"description": "A set of tools for performance profiling and memory checking",
"homepage": "https://github.com/gperftools/gperftools",
"supports": "!(arm | arm64 | uwp)",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true,
"platform": "windows"
}
],
"features": {
"override": {
"description": "Override allocators"

View File

@ -2526,7 +2526,7 @@
},
"gperftools": {
"baseline": "2019-09-02",
"port-version": 1
"port-version": 2
},
"gpgme": {
"baseline": "1.14.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7bf526ef5e6a6a1dfb5fa4cb6941e415b64b94b3",
"version-date": "2019-09-02",
"port-version": 2
},
{
"git-tree": "e9062481bd1f6c7f7cac6bfabe0252f862730efc",
"version-string": "2019-09-02",