[libhv] Add new port (#16460)

* [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>
This commit is contained in:
ithewei 2021-03-02 08:07:58 +08:00 committed by GitHub
parent b554d3ad08
commit 8e31229c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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)

7
ports/libhv/vcpkg.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "libhv",
"version": "1.0.0",
"description": "Libhv is a C/C++ network library similar to libevent/libuv.",
"homepage": "https://github.com/ithewei/libhv",
"supports": "!(arm | uwp)"
}

View File

@ -3072,6 +3072,10 @@
"baseline": "2020.08.30",
"port-version": 0
},
"libhv": {
"baseline": "1.0.0",
"port-version": 0
},
"libhydrogen": {
"baseline": "2019-08-11",
"port-version": 0

9
versions/l-/libhv.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "53457f5b0cce060b81f86072bde37a9607fe38a8",
"version": "1.0.0",
"port-version": 0
}
]
}