From a6534a07441fb1de05dccd5b2e18bfe8792c113d Mon Sep 17 00:00:00 2001 From: Colin Cornaby Date: Mon, 6 Mar 2023 21:55:57 -0800 Subject: [PATCH] Adding Mac triplet Python should be a dylib now --- Scripts/Triplets/x64-osx.cmake | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Scripts/Triplets/x64-osx.cmake diff --git a/Scripts/Triplets/x64-osx.cmake b/Scripts/Triplets/x64-osx.cmake new file mode 100644 index 0000000000..471b86913f --- /dev/null +++ b/Scripts/Triplets/x64-osx.cmake @@ -0,0 +1,26 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_DISABLE_COMPILER_TRACKING TRUE) + +set(VCPKG_CMAKE_SYSTEM_NAME Darwin) +set(VCPKG_OSX_ARCHITECTURES x86_64) + +# Unfortunately, we cannot include() anything from here because CMAKE_CURRENT_LIST_DIR is "wrong." +# If you update this list, remember to synchronize x86-windows-plasma.cmake. +set(_PLASMA_DYNAMIC_LIBRARIES + cairo + python2 + python3 +) + +cmake_policy(SET CMP0057 NEW) +if(PORT IN_LIST _PLASMA_DYNAMIC_LIBRARIES) + set(VCPKG_LIBRARY_LINKAGE dynamic) +else() + set(VCPKG_LIBRARY_LINKAGE static) +endif() + +# This is a terrible hack because meson seems to suck. +if(PORT STREQUAL cairo) + set(VCPKG_BUILD_TYPE release) +endif()