From ca4640a202a7f8ab9dae6154be4d74fcaa872e2f Mon Sep 17 00:00:00 2001 From: Julianus Pfeuffer Date: Fri, 14 Jul 2023 23:39:05 +0200 Subject: [PATCH] [qt5-base] fix building with mac dynamic triplet (#32500) --- ports/qt5-base/portfile.cmake | 8 ++++++++ ports/qt5-base/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/q-/qt5-base.json | 5 +++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ports/qt5-base/portfile.cmake b/ports/qt5-base/portfile.cmake index 890a1e4d15..5a580042ca 100644 --- a/ports/qt5-base/portfile.cmake +++ b/ports/qt5-base/portfile.cmake @@ -289,6 +289,14 @@ elseif(VCPKG_TARGET_IS_LINUX) list(APPEND DEBUG_OPTIONS "PSQL_LIBS=${PSQL_DEBUG} ${PSQL_PORT_DEBUG} ${PSQL_TYPES_DEBUG} ${PSQL_COMMON_DEBUG} ${SSL_DEBUG} ${EAY_DEBUG} -ldl -lpthread") endif() elseif(VCPKG_TARGET_IS_OSX) + if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + # Avoid frameworks for vcpkg + list(APPEND CORE_OPTIONS -no-framework) + # Such that Qt executables like moc find their libs. The default path is ../Frameworks + list(APPEND DEBUG_OPTIONS -R ${CURRENT_INSTALLED_DIR}/debug/lib) + list(APPEND RELEASE_OPTIONS -R ${CURRENT_INSTALLED_DIR}/lib) + endif() + list(APPEND CORE_OPTIONS -fontconfig) if("${VCPKG_TARGET_ARCHITECTURE}" MATCHES "arm64") FILE(READ "${SOURCE_PATH}/mkspecs/common/macx.conf" _tmp_contents) diff --git a/ports/qt5-base/vcpkg.json b/ports/qt5-base/vcpkg.json index 70ad71f67b..ce060a7043 100644 --- a/ports/qt5-base/vcpkg.json +++ b/ports/qt5-base/vcpkg.json @@ -1,7 +1,7 @@ { "name": "qt5-base", "version": "5.15.10", - "port-version": 2, + "port-version": 3, "description": "Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.", "homepage": "https://www.qt.io/", "license": null, diff --git a/versions/baseline.json b/versions/baseline.json index 7d11b3ab8c..236e37247c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6618,7 +6618,7 @@ }, "qt5-base": { "baseline": "5.15.10", - "port-version": 2 + "port-version": 3 }, "qt5-canvas3d": { "baseline": "0", diff --git a/versions/q-/qt5-base.json b/versions/q-/qt5-base.json index d7ebb11ff8..640d700bbd 100644 --- a/versions/q-/qt5-base.json +++ b/versions/q-/qt5-base.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "527c937f1bc15252b1397447900bc93c13f16b5e", + "version": "5.15.10", + "port-version": 3 + }, { "git-tree": "47eb2c538dd9220fcf44ca6a72f1aa64e4fb8d26", "version": "5.15.10",