2020-05-16 03:05:14 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO aspnet/SignalR-Client-Cpp
|
2023-04-26 13:46:39 +08:00
|
|
|
REF "v${VERSION}"
|
2022-10-28 10:24:44 +08:00
|
|
|
SHA512 b87c94e8bc81781c1cfb4292f1fe3ce046a5f192a25c02104f454b533349c1c0ed965570bd749b496bb316ccb89ae51c5e7461ffa06055e71dac659fbde79456
|
2021-03-27 02:10:47 +08:00
|
|
|
HEAD_REF main
|
2023-05-12 02:37:33 +08:00
|
|
|
PATCHES
|
|
|
|
find-msgpack.patch
|
2020-05-16 03:05:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
cpprestsdk USE_CPPRESTSDK
|
2021-08-10 00:08:38 +08:00
|
|
|
messagepack USE_MSGPACK
|
2020-05-16 03:05:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if("cpprestsdk" IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
|
|
|
|
message(FATAL_ERROR "microsoft-signalr[cpprestsdk] is not supported on UWP, use microsoft-signalr[core] instead")
|
|
|
|
endif()
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-05-16 03:05:14 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DWALL=OFF
|
2023-05-12 02:37:33 +08:00
|
|
|
"-DJSONCPP_LIB=JsonCpp::JsonCpp"
|
2020-05-16 03:05:14 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/share/microsoft-signalr)
|
2020-05-16 03:05:14 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/share" "${CURRENT_PACKAGES_DIR}/lib/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-05-16 03:05:14 +08:00
|
|
|
|
2023-04-26 13:46:39 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
2023-03-08 06:14:52 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/third-party-notices.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2020-05-16 03:05:14 +08:00
|
|
|
|
2023-04-26 13:46:39 +08:00
|
|
|
vcpkg_copy_pdbs()
|