2019-09-03 22:47:48 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sgieseking/anyrpc
|
2021-08-30 19:20:48 +02:00
|
|
|
REF b1949b3d40849229055ae75cf5334b9d08579502
|
|
|
|
SHA512 8c674d29e80ec2522d6c1ec959663958ab4e1bf1135727c3c2aaa19e62a81ddbbd1e6a46f3e4679ee02894ad2ab26e70ca7e1e6c8750f3289994311069221b53
|
2019-09-03 22:47:48 +02:00
|
|
|
HEAD_REF master
|
2021-08-30 19:20:48 +02:00
|
|
|
FILE_DISAMBIGUATOR 1
|
2022-08-29 17:56:19 +02:00
|
|
|
PATCHES
|
|
|
|
mingw.patch # Remove this when https://github.com/sgieseking/anyrpc/pull/46 is released
|
2019-09-03 22:47:48 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ANYRPC_LIB_BUILD_SHARED)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-08-30 19:20:48 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-10 10:31:40 -08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-09-03 22:47:48 +02:00
|
|
|
OPTIONS
|
2021-08-30 19:20:48 +02:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_WITH_LOG4CPLUS=OFF
|
|
|
|
-DANYRPC_LIB_BUILD_SHARED=${ANYRPC_LIB_BUILD_SHARED}
|
2019-09-03 22:47:48 +02:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-03 22:47:48 +02:00
|
|
|
|
2021-08-30 19:20:48 +02:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-03 22:47:48 +02:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|