2018-03-20 12:09:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO SignalR/SignalR-Client-Cpp
|
|
|
|
REF 1.0.0-beta1
|
2017-09-26 06:10:21 +08:00
|
|
|
SHA512 b38f6f946f1499080071949cbcf574405118f9acfb469441e5b5b0df3e5f0d277a83b30e0d613dc5e54732b9071e3273dac1ee65129f994d5a60eef0e45bdf6c
|
2018-03-20 12:09:13 +08:00
|
|
|
HEAD_REF master
|
2016-11-15 14:10:11 +08:00
|
|
|
PATCHES
|
2019-03-30 13:21:40 +08:00
|
|
|
0001_cmake.patch
|
|
|
|
0002_fix-compile-error.patch
|
2016-11-15 14:10:11 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-10-28 23:50:58 +08:00
|
|
|
OPTIONS_DEBUG
|
2023-03-02 02:39:29 +08:00
|
|
|
"-DCPPREST_SO=${CURRENT_INSTALLED_DIR}/debug/lib/cpprest_2_10d.lib"
|
2017-10-28 23:50:58 +08:00
|
|
|
OPTIONS_RELEASE
|
2023-03-02 02:39:29 +08:00
|
|
|
"-DCPPREST_SO=${CURRENT_INSTALLED_DIR}/lib/cpprest_2_10.lib"
|
2016-11-16 09:01:54 +08:00
|
|
|
OPTIONS
|
2023-03-02 02:39:29 +08:00
|
|
|
"-DCPPREST_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include"
|
2016-11-16 09:01:54 +08:00
|
|
|
-DDISABLE_TESTS=ON
|
2016-11-15 14:10:11 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2016-11-15 14:10:11 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-11-15 14:10:11 +08:00
|
|
|
|
|
|
|
# copy license
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|