2021-03-02 08:07:58 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ithewei/libhv
|
2022-12-03 01:11:25 +08:00
|
|
|
REF 3a67fe506a291ee94ed80bbdd73553fcb6a6b1ef #v1.3.0
|
|
|
|
SHA512 3aa341a94950b0d4f3351a6f62a4c34947b481bb59f1954dd8d031313e73d9c6add1017cf386c507b231b114d80cfc0739a50bed179bdbc31052c86e2f1321a3
|
2021-03-02 08:07:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
|
2022-03-19 05:52:54 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
ssl WITH_OPENSSL
|
|
|
|
)
|
|
|
|
|
2021-10-12 11:22:16 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-27 01:27:45 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2021-03-02 08:07:58 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_UNITTEST=OFF
|
|
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
|
|
-DBUILD_SHARED=${BUILD_SHARED}
|
2022-03-19 05:52:54 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2021-03-02 08:07:58 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 11:22:16 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-02 08:07:58 +08:00
|
|
|
|
2022-06-07 00:45:02 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libhv)
|
2021-03-02 08:07:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2021-10-12 11:22:16 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|