mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Make Discord voice support explicit.
This commit is contained in:
parent
4f70f89b78
commit
60467782e3
@ -13,6 +13,7 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/vendor/POCO/cmake)
|
|||||||
# Several plugin options
|
# Several plugin options
|
||||||
option(ENABLE_API21 "Build for 2.1 API." OFF)
|
option(ENABLE_API21 "Build for 2.1 API." OFF)
|
||||||
option(ENABLE_DISCORD "Enable built-in Discord support" ON)
|
option(ENABLE_DISCORD "Enable built-in Discord support" ON)
|
||||||
|
option(ENABLE_DISCORD_VOICE "Enable voice support in Discord library" OFF)
|
||||||
option(ENABLE_OFFICIAL "Enable compatibility with official legacy plug-in" ON)
|
option(ENABLE_OFFICIAL "Enable compatibility with official legacy plug-in" ON)
|
||||||
#option(FORCE_32BIT_BIN "Create a 32-bit executable binary if the compiler defaults to 64-bit." OFF)
|
#option(FORCE_32BIT_BIN "Create a 32-bit executable binary if the compiler defaults to 64-bit." OFF)
|
||||||
# This option should only be available in certain conditions
|
# This option should only be available in certain conditions
|
||||||
|
3
vendor/DPP/CMakeLists.txt
vendored
3
vendor/DPP/CMakeLists.txt
vendored
@ -149,6 +149,8 @@ find_package(OpenSSL REQUIRED)
|
|||||||
target_link_libraries(DPP PUBLIC Threads::Threads ZLIB::ZLIB OpenSSL::Crypto OpenSSL::SSL)
|
target_link_libraries(DPP PUBLIC Threads::Threads ZLIB::ZLIB OpenSSL::Crypto OpenSSL::SSL)
|
||||||
# Include the custom module folder
|
# Include the custom module folder
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/")
|
||||||
|
# Enable voice support in discord library
|
||||||
|
if (ENABLE_DISCORD_VOICE)
|
||||||
# Look for sodium and opus libraries
|
# Look for sodium and opus libraries
|
||||||
include("cmake/FindSodium.cmake")
|
include("cmake/FindSodium.cmake")
|
||||||
include("cmake/FindOpus.cmake")
|
include("cmake/FindOpus.cmake")
|
||||||
@ -169,3 +171,4 @@ if(DEFINED OPUS_FOUND)
|
|||||||
target_link_libraries(DPP PUBLIC ${sodium_LIBRARY_RELEASE})
|
target_link_libraries(DPP PUBLIC ${sodium_LIBRARY_RELEASE})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user