Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/triplets/x64-windows-mixed-md.cmake
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-08 20:09:27 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-08 20:09:27 +1100
commit6c562470f3a7cd24ed6501f54422564ed42051ea (patch)
tree2e422b3316b6e77cbc35085a9ce63b4c6d0912d3 /triplets/x64-windows-mixed-md.cmake
parent89fe1bf15bc458df6c63f1aaeac42a4883efbfd5 (diff)
Merge launcher branch
Diffstat (limited to 'triplets/x64-windows-mixed-md.cmake')
-rw-r--r--triplets/x64-windows-mixed-md.cmake18
1 files changed, 17 insertions, 1 deletions
diff --git a/triplets/x64-windows-mixed-md.cmake b/triplets/x64-windows-mixed-md.cmake
index 24e1120..7b344f8 100644
--- a/triplets/x64-windows-mixed-md.cmake
+++ b/triplets/x64-windows-mixed-md.cmake
@@ -2,6 +2,22 @@ set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
-if(PORT MATCHES "sdl|zlib")
+if(PORT MATCHES "sdl|discord-")
set(VCPKG_LIBRARY_LINKAGE dynamic)
+endif()
+
+if(PORT MATCHES "opus")
+ string(CONCAT VCPKG_CMAKE_CONFIGURE_OPTIONS
+ "-DOPUS_INSTALL_PKG_CONFIG_MODULE=OFF"
+ "-DOPUS_INSTALL_CMAKE_CONFIG_MODULE=OFF"
+ "-DOPUS_X86_MAY_HAVE_SSE=ON"
+ "-DOPUS_X86_MAY_HAVE_AVX=ON"
+ "-DOPUS_X86_MAY_HAVE_SSE4_1=ON"
+ "-DOPUS_ENABLE_FLOAT_API=ON"
+ "-DOPUS_FLOAT_APPROX=ON"
+ "-DOPUS_STACK_PROTECTOR=OFF"
+ "-DOPUS_NONTHREADSAFE_PSEUDOSTACK=OFF"
+ "-DOPUS_USE_ALLOCA=ON"
+ "-DBUILD_TESTING=OFF"
+ )
endif() \ No newline at end of file