Discord cleanup

This commit is contained in:
Henrik Rydgård committed 2026-08-07 08:49:29 +02:00
1 parent 3504be26b0
commit da567f6a89
2 files changed
+12 -6

No files matched your search

+11 -6
View File
@@ -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()