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

summaryrefslogtreecommitdiff
path: root/triplets
diff options
context:
space:
mode:
Diffstat (limited to 'triplets')
-rw-r--r--triplets/arm64-osx-mixed.cmake25
-rw-r--r--triplets/x64-linux-mixed.cmake25
-rw-r--r--triplets/x64-osx-mixed.cmake26
-rw-r--r--triplets/x64-windows-mixed-md.cmake18
4 files changed, 93 insertions, 1 deletions
diff --git a/triplets/arm64-osx-mixed.cmake b/triplets/arm64-osx-mixed.cmake
new file mode 100644
index 0000000..a05fea2
--- /dev/null
+++ b/triplets/arm64-osx-mixed.cmake
@@ -0,0 +1,25 @@
+set(VCPKG_TARGET_ARCHITECTURE arm64)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+
+set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
+set(VCPKG_OSX_ARCHITECTURES arm64)
+
+if(PORT MATCHES "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_ARM_MAY_HAVE_NEON=ON"
+ "-DOPUS_ARM_MAY_HAVE_NEON_INTR=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
diff --git a/triplets/x64-linux-mixed.cmake b/triplets/x64-linux-mixed.cmake
new file mode 100644
index 0000000..be80364
--- /dev/null
+++ b/triplets/x64-linux-mixed.cmake
@@ -0,0 +1,25 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+
+set(VCPKG_CMAKE_SYSTEM_NAME Linux)
+
+if(PORT MATCHES "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
diff --git a/triplets/x64-osx-mixed.cmake b/triplets/x64-osx-mixed.cmake
new file mode 100644
index 0000000..2182ac7
--- /dev/null
+++ b/triplets/x64-osx-mixed.cmake
@@ -0,0 +1,26 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+
+set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
+set(VCPKG_OSX_ARCHITECTURES x86_64)
+
+if(PORT MATCHES "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
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