From 6e02c595cb9a9c8360e855c107b701ba4abe73fb Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Sun, 6 Jul 2025 05:35:55 +0200 Subject: [PATCH] [abseil] Add CoreFoundation to absl_time.pc --- ports/abseil/portfile.cmake | 7 +++++++ ports/abseil/vcpkg.json | 2 +- versions/a-/abseil.json | 5 +++++ versions/baseline.json | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ports/abseil/portfile.cmake b/ports/abseil/portfile.cmake index a012e450ef38cd..c0d5d14e5d57e5 100644 --- a/ports/abseil/portfile.cmake +++ b/ports/abseil/portfile.cmake @@ -41,6 +41,13 @@ vcpkg_cmake_configure( vcpkg_cmake_install() vcpkg_cmake_config_fixup(PACKAGE_NAME absl CONFIG_PATH lib/cmake/absl) + +if(VCPKG_TARGET_IS_IOS OR VCPKG_TARGET_IS_OSX) + file(APPEND "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/absl_time.pc" "Libs.private: -framework CoreFoundation\n") + if(NOT VCPKG_BUILD_TYPE) + file(APPEND "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/absl_time.pc" "Libs.private: -framework CoreFoundation\n") + endif() +endif() vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() diff --git a/ports/abseil/vcpkg.json b/ports/abseil/vcpkg.json index aa934289457d12..94aad36b098ad5 100644 --- a/ports/abseil/vcpkg.json +++ b/ports/abseil/vcpkg.json @@ -1,7 +1,7 @@ { "name": "abseil", "version": "20250127.1", - "port-version": 1, + "port-version": 2, "description": [ "Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.", "In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.", diff --git a/versions/a-/abseil.json b/versions/a-/abseil.json index 15a13c7e9d406f..fa5dfeeef94110 100644 --- a/versions/a-/abseil.json +++ b/versions/a-/abseil.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "15a046bb4ccc8e59bc9f31df290400a07c587675", + "version": "20250127.1", + "port-version": 2 + }, { "git-tree": "6bb28e97cced88426e3126a47e247ed65608cc86", "version": "20250127.1", diff --git a/versions/baseline.json b/versions/baseline.json index 7adb62fa1bbf8a..a09af5148622eb 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -18,7 +18,7 @@ }, "abseil": { "baseline": "20250127.1", - "port-version": 1 + "port-version": 2 }, "absent": { "baseline": "0.3.1",