System: Load discord-rpc dynamically

This commit is contained in:
Stenzek
2024-07-04 14:40:16 +10:00
parent 00d2d862c2
commit f6d3a7987d
8 changed files with 87 additions and 32 deletions

View File

@@ -182,11 +182,6 @@ if(CPU_ARCH_RISCV64)
message(STATUS "Building RISC-V 64-bit recompiler.")
endif()
if(NOT ANDROID)
target_compile_definitions(core PUBLIC -DENABLE_DISCORD_PRESENCE=1)
target_link_libraries(core PRIVATE DiscordRPC::discord-rpc)
endif()
# Copy the provided data directory to the output directory. Borrowed from PCSX2.
function(add_resources target path basedir)
get_filename_component(dir ${path} DIRECTORY)