mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:41:37 +08:00
a6cb7292c4
* [many ports]switch to vcpkg-cmake / vckg-cmake-config * version * Missing changes * version * typo * version * typo * version * fix typo * version * deprecate vcpkg_extract_source_archive_ex * version * fix arguments * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
34 lines
1010 B
CMake
34 lines
1010 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO discordapp/discord-rpc
|
|
REF v3.4.0
|
|
SHA512 ca981b833aff5f21fd629a704deadd8e3fb5423d959ddb75e381313f6462d984c567671b10c8f031905c08d85792ddbe2dddc402ba2613c42de9e80fc68d0d51
|
|
HEAD_REF master
|
|
PATCHES disable-downloading.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/thirdparty")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DUSE_STATIC_CRT=${STATIC_CRT}
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DRAPIDJSONTEST=TRUE
|
|
"-DRAPIDJSON=${CURRENT_INSTALLED_DIR}"
|
|
)
|
|
|
|
if(EXISTS ${SOURCE_PATH}/thirdparty)
|
|
message(FATAL_ERROR "The source directory should not be modified during the build.")
|
|
endif()
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Copy copright information
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/discord-rpc" RENAME "copyright")
|
|
|
|
vcpkg_copy_pdbs()
|