osb/triplets/x64-linux-mixed.cmake
2025-01-07 20:10:51 +11:00

31 lines
878 B
CMake

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 "libsystemd")
set(VCPKG_C_FLAGS "-std=c11")
set(VCPKG_CXX_FLAGS "-std=c11")
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()