2024-05-18 01:07:23 +02:00
|
|
|
From: Jan Engelhardt <ej@inai.de>
|
2022-06-16 18:39:07 +02:00
|
|
|
Date: 2022-06-12 10:37:00.984596068 +0200
|
|
|
|
|
2024-05-18 01:07:23 +02:00
|
|
|
Use system-provided discord-rpc library. Heed
|
|
|
|
|
|
|
|
* https://docs.fedoraproject.org/en-US/fesco/Bundled_Software_policy/
|
|
|
|
* https://en.opensuse.org/openSUSE:Bundled_software_policy
|
|
|
|
|
2022-06-16 18:39:07 +02:00
|
|
|
---
|
2022-06-26 15:03:04 +02:00
|
|
|
CMakeLists.txt | 6 +++---
|
2022-06-16 18:39:07 +02:00
|
|
|
libraries/discordrpc/src/CMakeLists.txt | 2 +-
|
2022-06-26 15:03:04 +02:00
|
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
2022-06-16 18:39:07 +02:00
|
|
|
|
2024-04-30 13:16:58 +02:00
|
|
|
Index: gzdoom-g4.12.2/CMakeLists.txt
|
2022-06-16 18:39:07 +02:00
|
|
|
===================================================================
|
2024-04-30 13:16:58 +02:00
|
|
|
--- gzdoom-g4.12.2.orig/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.12.2/CMakeLists.txt
|
|
|
|
@@ -345,9 +345,9 @@ add_subdirectory( libraries/ZWidget )
|
|
|
|
add_subdirectory( libraries/webp )
|
2022-06-16 18:39:07 +02:00
|
|
|
|
2022-06-26 15:03:04 +02:00
|
|
|
add_subdirectory( libraries/discordrpc EXCLUDE_FROM_ALL )
|
2022-06-16 18:39:07 +02:00
|
|
|
-set( DRPC_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/discordrpc/include" )
|
|
|
|
-set( DRPC_LIBRARIES discord-rpc )
|
|
|
|
-set( DRPC_LIBRARY discord-rpc )
|
2024-05-18 01:07:23 +02:00
|
|
|
+set( DRPC_INCLUDE_DIR "/ignore" )
|
2022-06-16 18:39:07 +02:00
|
|
|
+set( DRPC_LIBRARIES -ldiscord-rpc )
|
|
|
|
+set( DRPC_LIBRARY -ldiscord-rpc )
|
|
|
|
|
2023-11-03 10:26:46 +01:00
|
|
|
if( HAVE_VM_JIT AND UNIX )
|
|
|
|
check_symbol_exists( "backtrace" "execinfo.h" HAVE_BACKTRACE )
|
2024-04-30 13:16:58 +02:00
|
|
|
Index: gzdoom-g4.12.2/libraries/discordrpc/src/CMakeLists.txt
|
2022-06-16 18:39:07 +02:00
|
|
|
===================================================================
|
2024-04-30 13:16:58 +02:00
|
|
|
--- gzdoom-g4.12.2.orig/libraries/discordrpc/src/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.12.2/libraries/discordrpc/src/CMakeLists.txt
|
2022-06-16 18:39:07 +02:00
|
|
|
@@ -28,7 +28,7 @@ endif(${BUILD_SHARED_LIBS})
|
|
|
|
if(WIN32)
|
|
|
|
add_definitions(-DDISCORD_WINDOWS)
|
|
|
|
set(BASE_RPC_SRC ${BASE_RPC_SRC} connection_win.cpp discord_register_win.cpp)
|
|
|
|
- add_library(discord-rpc ${BASE_RPC_SRC})
|
|
|
|
+ add_library(discord-rpc STATIC ${BASE_RPC_SRC})
|
|
|
|
if (MSVC)
|
|
|
|
if(USE_STATIC_CRT)
|
|
|
|
foreach(CompilerFlag
|