Incomplete Discord implementation.

This commit is contained in:
Sandu Liviu Catalin
2023-03-23 20:24:29 +02:00
parent e0761bf3b9
commit 8d93ab482c
41 changed files with 8121 additions and 84 deletions
+25
View File
@@ -8,6 +8,8 @@ add_subdirectory(TinyDir)
add_subdirectory(SAJSON)
add_subdirectory(CPR)
add_subdirectory(UTF8)
add_subdirectory(JSON)
add_subdirectory(Inja)
add_subdirectory(PUGIXML)
add_subdirectory(CivetWeb)
if (ENABLE_BUILTIN_MYSQL_C)
@@ -71,3 +73,26 @@ if (WIN32 OR MINGW)
set(ZMQ_HAVE_IPC OFF CACHE INTERNAL "" FORCE)
endif()
add_subdirectory(ZMQ)
if(ENABLE_DISCORD)
set(BUILD_TESTING OFF CACHE INTERNAL "" FORCE)
set(BUILD_VOICE_SUPPORT OFF CACHE INTERNAL "" FORCE)
set(DPP_INSTALL OFF CACHE INTERNAL "" FORCE)
set(DPP_BUILD_TEST OFF CACHE INTERNAL "" FORCE)
set(DPP_NO_VCPKG ON CACHE INTERNAL "" FORCE)
set(DPP_CORO OFF CACHE INTERNAL "" FORCE)
set(DPP_USE_EXTERNAL_JSON ON CACHE INTERNAL "" FORCE)
if (WIN32 OR MINGW)
set(BUILD_SHARED_LIBS ON CACHE INTERNAL "" FORCE)
endif()
add_subdirectory(DPP)
target_link_libraries(dpp PRIVATE nlohmann_json)
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
# We don't care about DPP warnings
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
target_compile_options(dpp PRIVATE -w)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
target_compile_options(dpp PRIVATE -w)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
target_compile_options(dpp PRIVATE /w)
endif()
endif()