mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Discord cleanup
This commit is contained in:
1 parent
3504be26b0
commit
da567f6a89
2 files changed
+12
-6
No files matched your search
@@ -16,15 +16,12 @@ set(ALL_SOURCE_FILES
|
||||
${SRC_DIR}/serialization.cpp
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES}
|
||||
${SRC_DIR}/discord_register_osx.m
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_win.cpp)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_win.cpp)
|
||||
elseif(APPLE)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_unix.cpp)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_osx.m)
|
||||
else()
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/connection_unix.cpp)
|
||||
set(ALL_SOURCE_FILES ${ALL_SOURCE_FILES} ${SRC_DIR}/discord_register_linux.cpp)
|
||||
@@ -33,3 +30,11 @@ endif()
|
||||
add_library(discord-rpc STATIC ${ALL_SOURCE_FILES})
|
||||
|
||||
target_include_directories(discord-rpc PUBLIC ../discord-rpc/src ../discord-rpc/include ../rapidjson/include)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(discord-rpc PUBLIC pthread)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
target_link_libraries(discord-rpc PRIVATE "-framework AppKit")
|
||||
endif()
|
||||
Reference in new issue
Block a user