[highway] Add new port (#21087)

* Add highway 0.14.2 port

* Update git-tree hash

* Fix vcpkg_fixup_pkgconfig by removing libhwy-test.pc

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
This commit is contained in:
chausner 2021-11-04 20:21:48 +01:00 committed by GitHub
parent 058dea025e
commit 4d03b83c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,27 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/highway
REF 0.14.2
SHA512 fc1a35463c95c45b646c53f91a9996112726de1d588dcd4d25a7d366840f704ad9a4c0bb6e0a001e929409f04aad6922cbffcf93774a0c360aff875956c7cc8d
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
# remove test-related pkg-config files that break vcpkg_fixup_pkgconfig
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libhwy-test.pc")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libhwy-test.pc")
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

13
ports/highway/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "highway",
"version-semver": "0.14.2",
"description": "Performance-portable, length-agnostic SIMD with runtime dispatch",
"homepage": "https://github.com/google/highway",
"license": "Apache-2.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -2676,6 +2676,10 @@
"baseline": "2.3",
"port-version": 0
},
"highway": {
"baseline": "0.14.2",
"port-version": 0
},
"hiredis": {
"baseline": "1.0.2",
"port-version": 1

9
versions/h-/highway.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "5167bd4fba072a5f09398d913d5e575241c67c5e",
"version-semver": "0.14.2",
"port-version": 0
}
]
}