mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-11-24 01:55:38 +01:00
Make that define a cmake option.
This commit is contained in:
parent
eb2f6f8edc
commit
7dcc2d45e3
@ -10,12 +10,12 @@ PRs/feedback welcome if you have an improvement everyone might want.
|
||||
## Usage
|
||||
|
||||
There's a CMake file that should be able to generate the lib for you; I use it like this:
|
||||
```
|
||||
```sh
|
||||
cd /path/to/discord-rpc
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
cmake --build . --config Release
|
||||
```
|
||||
Sometimes I use the generated project files.
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
//#define DISCORD_DISABLE_IO_THREAD
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -1,5 +1,11 @@
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
option(ENABLE_IO_THREAD "Start up a separate I/O thread, otherwise I'd need to call an update function" ON)
|
||||
|
||||
if (${ENABLE_IO_THREAD} EQUAL OFF)
|
||||
add_definitions(-DDISCORD_DISABLE_IO_THREAD)
|
||||
endif (${ENABLE_IO_THREAD} EQUAL OFF)
|
||||
|
||||
set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp rpc_connection.h rpc_connection.cpp serialization.h serialization.cpp connection.h backoff.h)
|
||||
|
||||
if(WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user