2021-10-12 12:05:57 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Tradias/asio-grpc
|
2022-09-08 03:15:24 +08:00
|
|
|
REF v2.1.0
|
|
|
|
SHA512 09a8a34406726057e2db8991a7156ce23e6f1f920d71a5716abcfd303b573929703a6e6af3a1ef6e9fe80ea6d9c7f2a072c6ffca6f06109afd09ab1277835e02
|
2021-10-12 12:05:57 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
boost-container ASIO_GRPC_USE_BOOST_CONTAINER
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2022-06-08 08:38:44 +08:00
|
|
|
-DASIO_GRPC_CMAKE_CONFIG_INSTALL_DIR=share/asio-grpc
|
2021-10-12 12:05:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2022-06-08 08:38:44 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2021-10-12 12:05:57 +08:00
|
|
|
|
2022-06-08 08:38:44 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2021-10-12 12:05:57 +08:00
|
|
|
|
2021-11-14 02:57:00 +08:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2021-10-12 12:05:57 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|