]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/discord-rpc/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / discord-rpc / portfile.cmake
1 vcpkg_from_github(
2 OUT_SOURCE_PATH SOURCE_PATH
3 REPO discordapp/discord-rpc
4 REF v3.4.0
5 SHA512 ca981b833aff5f21fd629a704deadd8e3fb5423d959ddb75e381313f6462d984c567671b10c8f031905c08d85792ddbe2dddc402ba2613c42de9e80fc68d0d51
6 HEAD_REF master
7 PATCHES disable-downloading.patch
8 )
9
10 string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
11 file(REMOVE_RECURSE ${SOURCE_PATH}/thirdparty)
12
13 vcpkg_configure_cmake(
14 SOURCE_PATH ${SOURCE_PATH}
15 PREFER_NINJA
16 OPTIONS
17 -DUSE_STATIC_CRT=${STATIC_CRT}
18 -DBUILD_EXAMPLES=OFF
19 -DRAPIDJSONTEST=TRUE
20 -DRAPIDJSON=${CURRENT_INSTALLED_DIR}
21 )
22
23 if(EXISTS ${SOURCE_PATH}/thirdparty)
24 message(FATAL_ERROR "The source directory should not be modified during the build.")
25 endif()
26
27 vcpkg_install_cmake()
28
29 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
30
31 # Copy copright information
32 file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/discord-rpc" RENAME "copyright")
33
34 vcpkg_copy_pdbs()