From 88368f5ae90e0aba324cb5e20a63cfae128c521d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 4 Aug 2021 22:38:56 +0200 Subject: [PATCH] [fdk-aac] update osx triplet to build a dynamic library --- overlay/triplets/x64-osx.cmake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/overlay/triplets/x64-osx.cmake b/overlay/triplets/x64-osx.cmake index 03e5f69d88559e..e649569457c6cd 100644 --- a/overlay/triplets/x64-osx.cmake +++ b/overlay/triplets/x64-osx.cmake @@ -1,6 +1,14 @@ set(VCPKG_TARGET_ARCHITECTURE x64) set(VCPKG_CRT_LINKAGE dynamic) -set(VCPKG_LIBRARY_LINKAGE static) + +# Mixxx loads fdk-aac dynamically at runtime. This allows the user to replace +# the version of fdk-aac we ship which has the patent-encumbered HE-AAC +#removed with another build that supports HE-AAC. +if(${PORT} MATCHES "fdk-aac") + set(VCPKG_LIBRARY_LINKAGE dynamic) +else() + set(VCPKG_LIBRARY_LINKAGE static) +endif() set(VCPKG_CMAKE_SYSTEM_NAME Darwin) set(VCPKG_OSX_ARCHITECTURES x86_64)