mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 00:32:04 +08:00
8e31229c72
* [libhv] Add new port * vcpkg format-manifest ports/libhv/vcpkg.json * vcpkg x-add-version libhv * libhv:arm64-windows arm-uwp x64-uwp:fail * [libhv]: -DBUILD_EXAMPLES=OFF -DBUILD_UNITTEST=OFF * vcpkg x-add-version --overwrite-version libhv * [libhv]: update version and supports format * [libhv]: update versions * [libhv] vcpkg_fail_port_install(ON_ARCH arm ON_TARGET uwp) * [libhv] update versions * [libhv] Only build one flavor Co-authored-by: hewei.it <hewei.it@bytedance.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
29 lines
863 B
CMake
29 lines
863 B
CMake
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ithewei/libhv
|
|
REF v1.0.0
|
|
SHA512 49d9e93444667ff143048abc05f88aab23ec5c543c58d0494bac9c29ac8216760220f19828bde6b84a5864bc8c5ec280ee4a72cc5ba888a4f02734240243cb07
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_UNITTEST=OFF
|
|
-DBUILD_STATIC=${BUILD_STATIC}
|
|
-DBUILD_SHARED=${BUILD_SHARED}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|