mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
580bd2b25e
* Update asmjit dependency (aarch64 branch) * Disable USE_DISCORD_RPC by default * Dump some JIT objects in rpcs3 cache dir * Add SIGILL handler for all platforms * Fix resetting zeroing denormals in thread pool * Refactor most v128:: utils into global gv_** functions * Refactor PPU interpreter (incomplete), remove "precise" * - Instruction specializations with multiple accuracy flags * - Adjust calling convention for speed * - Removed precise/fast setting, replaced with static * - Started refactoring interpreters for building at runtime JIT * (I got tired of poor compiler optimizations) * - Expose some accuracy settings (SAT, NJ, VNAN, FPCC) * - Add exec_bytes PPU thread variable (akin to cycle count) * PPU LLVM: fix VCTUXS+VCTSXS instruction NaN results * SPU interpreter: remove "precise" for now (extremely non-portable) * - As with PPU, settings changed to static/dynamic for interpreters. * - Precise options will be implemented later * Fix termination after fatal error dialog
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
# DiscordRPC
|
|
add_library(3rdparty_discordRPC INTERFACE)
|
|
|
|
# We don't want Discord Rich Presence on the BSDs and other OSes
|
|
if (USE_DISCORD_RPC AND (WIN32 OR CMAKE_SYSTEM MATCHES "Linux" OR APPLE) AND COMPILER_X86)
|
|
if (WIN32 AND NOT MSVC)
|
|
ExternalProject_Add(discordRPC
|
|
GIT_REPOSITORY https://github.com/discordapp/discord-rpc
|
|
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}
|
|
INSTALL_COMMAND ""
|
|
)
|
|
|
|
endif()
|
|
|
|
target_include_directories(3rdparty_discordRPC INTERFACE include)
|
|
target_compile_definitions(3rdparty_discordRPC INTERFACE -DWITH_DISCORD_RPC)
|
|
|
|
set(DISCORD_RPC_LIB NOTFOUND)
|
|
if (WIN32)
|
|
if (NOT MSVC)
|
|
set(DISCORD_RPC_LIB ${CMAKE_CURRENT_BINARY_DIR}/src/libdiscord-rpc.a)
|
|
else()
|
|
find_library(DISCORD_RPC_LIB discord-rpc PATHS lib/ NO_DEFAULT_PATH)
|
|
endif()
|
|
elseif(CMAKE_SYSTEM MATCHES "Linux")
|
|
find_library(DISCORD_RPC_LIB discord-rpc-linux PATHS lib/ NO_DEFAULT_PATH)
|
|
elseif(APPLE)
|
|
find_library(DISCORD_RPC_LIB discord-rpc-mac PATHS lib/ NO_DEFAULT_PATH)
|
|
endif()
|
|
target_link_libraries(3rdparty_discordRPC INTERFACE ${DISCORD_RPC_LIB})
|
|
if(APPLE)
|
|
target_link_libraries(3rdparty_discordRPC INTERFACE "objc" "-framework Foundation" "-framework CoreServices")
|
|
endif()
|
|
endif()
|