diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8380d61..6b581cc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,7 +4,7 @@ set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp yol if(WIN32) add_library(discord-rpc-simple STATIC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc-simple.cpp) - + add_library(discord-rpc-sync STATIC ${BASE_RPC_SRC} connection_win_sync.cpp) target_include_directories(discord-rpc-sync PRIVATE ${RAPIDJSON}/include) @@ -12,3 +12,7 @@ if(WIN32) target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include) endif(WIN32) +if(UNIX) + add_library(discord-rpc STATIC ${BASE_RPC_SRC} connection_unix.cpp) + target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include) +endif(UNIX) diff --git a/src/connection_unix.cpp b/src/connection_unix.cpp new file mode 100644 index 0000000..d35e683 --- /dev/null +++ b/src/connection_unix.cpp @@ -0,0 +1,41 @@ +#include "connection.h" + +/*static*/ RpcConnection* RpcConnection::Create(const char* applicationId) +{ + return nullptr; +} + +/*static*/ void RpcConnection::Destroy(RpcConnection*&) +{ + +} + +void RpcConnection::Open() +{ + +} + +void RpcConnection::Close() +{ + +} + +void RpcConnection::Write(const void* data, size_t length) +{ + +} + +RpcMessageFrame* RpcConnection::Read() +{ + return nullptr; +} + +RpcMessageFrame* RpcConnection::GetNextFrame() +{ + return nullptr; +} + +void RpcConnection::WriteFrame(RpcMessageFrame* frame) +{ + +}