2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2017-10-27 09:16:36 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rpclib/rpclib
|
2021-09-28 12:00:00 +08:00
|
|
|
REF v2.3.0
|
|
|
|
SHA512 9C65AE5D000CD66E39498667DC826A4E8A2C28EB4138CFFE3AA09D5DDC22575551B9FA6CE9D951343213B9583F947899CB18B58130AEAEE36DAB5881EA496272
|
2017-10-27 09:16:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2021-09-28 12:00:00 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-28 11:22:42 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2017-10-27 09:16:36 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2021-09-28 12:00:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-10-27 09:16:36 +08:00
|
|
|
|
2021-09-28 12:00:00 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/rpclib")
|
2017-10-27 09:16:36 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-28 12:00:00 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|