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

summaryrefslogtreecommitdiff
path: root/triplets
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-05-31 06:34:48 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-05-31 06:34:48 +1000
commitd9481850f365b4fe0424d299480d3cb114b1c446 (patch)
tree826680e32713b6c21c6589b780ac7b7138e7e133 /triplets
parentc8aea48d84a1da84759a6a15b95212ca43082581 (diff)
default to GCC on Linux for now, move to optional Clang build action
Diffstat (limited to 'triplets')
-rw-r--r--triplets/x64-linux-mixed-clang.cmake26
-rw-r--r--triplets/x64-linux-mixed.cmake1
2 files changed, 26 insertions, 1 deletions
diff --git a/triplets/x64-linux-mixed-clang.cmake b/triplets/x64-linux-mixed-clang.cmake
new file mode 100644
index 0000000..9a95aff
--- /dev/null
+++ b/triplets/x64-linux-mixed-clang.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 Linux)
+set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../toolchains/linux-clang.cmake)
+
+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-linux-mixed.cmake b/triplets/x64-linux-mixed.cmake
index 9a95aff..be80364 100644
--- a/triplets/x64-linux-mixed.cmake
+++ b/triplets/x64-linux-mixed.cmake
@@ -3,7 +3,6 @@ set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
-set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../toolchains/linux-clang.cmake)
if(PORT MATCHES "discord-")
set(VCPKG_LIBRARY_LINKAGE dynamic)