mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
enable discord-rpc from vcpkg dependencies
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -155,9 +155,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
# Note: Discord_RPC can be enabled soon, requires one more CMakeLists update
|
||||
- name: Build OpenRCT2
|
||||
run: . scripts/setenv -q && build -DWITH_TESTS=on -DDISABLE_DISCORD_RPC=on -DCMAKE_BUILD_TYPE=MinSizeRel
|
||||
run: . scripts/setenv -q && build -DWITH_TESTS=on -DCMAKE_BUILD_TYPE=MinSizeRel
|
||||
- name: Run Tests
|
||||
shell: bash
|
||||
run: . scripts/setenv -q && run-tests
|
||||
|
||||
@@ -207,9 +207,11 @@ if (NOT DISABLE_DISCORD_RPC)
|
||||
add_definitions(-D__ENABLE_DISCORD__)
|
||||
include_directories(DISCORDRPC_PROCESS_INCLUDES)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT HAVE_DISCORD_RPC AND EXISTS "${ROOT_DIR}/discord-rpc")
|
||||
elseif (APPLE AND MACOS_USE_DEPENDENCIES)
|
||||
add_definitions(-D__ENABLE_DISCORD__)
|
||||
set(HAVE_DISCORD_RPC TRUE)
|
||||
message("Building with libdiscord-rpc.dylib")
|
||||
elseif(NOT HAVE_DISCORD_RPC AND EXISTS "${ROOT_DIR}/discord-rpc")
|
||||
# Don't build discord's examples, some of which are in C and do not honour
|
||||
# the flags we set for C++. Also we don't use the provided examples.
|
||||
set(BUILD_EXAMPLES OFF CACHE BOOL "Build example apps")
|
||||
|
||||
Reference in New Issue
Block a user