2017-11-12 02:46:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO discordapp/discord-rpc
|
2024-05-08 11:50:44 +08:00
|
|
|
REF "v${VERSION}"
|
2018-12-15 09:00:47 +08:00
|
|
|
SHA512 ca981b833aff5f21fd629a704deadd8e3fb5423d959ddb75e381313f6462d984c567671b10c8f031905c08d85792ddbe2dddc402ba2613c42de9e80fc68d0d51
|
2017-11-12 02:46:05 +08:00
|
|
|
HEAD_REF master
|
2018-11-15 07:11:41 +08:00
|
|
|
PATCHES disable-downloading.patch
|
2017-11-12 02:46:05 +08:00
|
|
|
)
|
|
|
|
|
2018-05-30 07:42:57 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/thirdparty")
|
2017-11-12 02:46:05 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-05-30 07:42:57 +08:00
|
|
|
OPTIONS
|
|
|
|
-DUSE_STATIC_CRT=${STATIC_CRT}
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2023-03-07 07:44:04 +08:00
|
|
|
"-DRAPIDJSON=${CURRENT_INSTALLED_DIR}"
|
2017-11-12 02:46:05 +08:00
|
|
|
)
|
|
|
|
|
2024-05-08 11:50:44 +08:00
|
|
|
if(EXISTS "${SOURCE_PATH}/thirdparty")
|
2018-11-15 07:11:41 +08:00
|
|
|
message(FATAL_ERROR "The source directory should not be modified during the build.")
|
|
|
|
endif()
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-12 02:46:05 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-11-12 02:46:05 +08:00
|
|
|
|
2024-05-08 11:50:44 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2017-11-12 02:46:05 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|