2019-09-04 04:47:48 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO sgieseking/anyrpc
|
2021-08-31 01:20:48 +08:00
|
|
|
REF b1949b3d40849229055ae75cf5334b9d08579502
|
|
|
|
SHA512 8c674d29e80ec2522d6c1ec959663958ab4e1bf1135727c3c2aaa19e62a81ddbbd1e6a46f3e4679ee02894ad2ab26e70ca7e1e6c8750f3289994311069221b53
|
2019-09-04 04:47:48 +08:00
|
|
|
HEAD_REF master
|
2021-08-31 01:20:48 +08:00
|
|
|
FILE_DISAMBIGUATOR 1
|
2019-09-04 04:47:48 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ANYRPC_LIB_BUILD_SHARED)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2021-08-31 01:20:48 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-04 04:47:48 +08:00
|
|
|
PREFER_NINJA
|
2020-12-11 02:31:40 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-09-04 04:47:48 +08:00
|
|
|
OPTIONS
|
2021-08-31 01:20:48 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_WITH_LOG4CPLUS=OFF
|
|
|
|
-DANYRPC_LIB_BUILD_SHARED=${ANYRPC_LIB_BUILD_SHARED}
|
2019-09-04 04:47:48 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2021-08-31 01:20:48 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-04 04:47:48 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|