diff options
| -rw-r--r-- | ports/discord-rpc/CONTROL | 3 | ||||
| -rw-r--r-- | ports/discord-rpc/portfile.cmake | 21 |
2 files changed, 10 insertions, 14 deletions
diff --git a/ports/discord-rpc/CONTROL b/ports/discord-rpc/CONTROL index 82e7515ed..ea7bc5d23 100644 --- a/ports/discord-rpc/CONTROL +++ b/ports/discord-rpc/CONTROL @@ -1,3 +1,4 @@ Source: discord-rpc -Version: 3.3.0 +Version: 3.3.0-1 Description: Rich Presence allows you to leverage the totally overhauled "Now Playing" section in a Discord user's profile to help people play your game together. +Build-Depends: rapidjson diff --git a/ports/discord-rpc/portfile.cmake b/ports/discord-rpc/portfile.cmake index 5a2f04c85..1fc21e8e6 100644 --- a/ports/discord-rpc/portfile.cmake +++ b/ports/discord-rpc/portfile.cmake @@ -8,26 +8,21 @@ vcpkg_from_github( HEAD_REF master ) -set(STATIC_CRT OFF) -if(VCPKG_CRT_LINKAGE STREQUAL static) - set(STATIC_CRT ON) -endif() +string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT) +file(REMOVE_RECURSE ${SOURCE_PATH}/thirdparty) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} - OPTIONS -DUSE_STATIC_CRT=${STATIC_CRT} + PREFER_NINJA + OPTIONS + -DUSE_STATIC_CRT=${STATIC_CRT} + -DBUILD_EXAMPLES=OFF + -DRAPIDJSONTEST=TRUE + -DRAPIDJSON=${CURRENT_INSTALLED_DIR} ) vcpkg_install_cmake() -# Remove bin and debug include -if(VCPKG_LIBRARY_LINKAGE STREQUAL static) - file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin - ${CURRENT_PACKAGES_DIR}/debug/bin) -else() - file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/send-presence.exe - ${CURRENT_PACKAGES_DIR}/debug/bin/send-presence.exe) -endif() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) # Copy copright information |
