Skip to content

Commit

Permalink
[highway] Bump to 1.0.6 & fix usage (#32926)
Browse files Browse the repository at this point in the history
* [highway] Bump to 1.0.6 & fix usage

* update version database
  • Loading branch information
xiaozhuai authored Aug 15, 2023
1 parent f7bc402 commit 576f3f1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
15 changes: 6 additions & 9 deletions ports/highway/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/highway
REF "${VERSION}"
SHA512 75aaa0a3f97c6b044acb146ac4db20c1d813c4215b9c1620e72352d00c136939db7059f599122d6600e385bffa8b24d7fd9c1fe09772f4941e5300767a8c68dd
SHA512 9d42ebae81240f75a0cd15030875f8405875e4f31690a16ae039df0ead2f4f483f76d269fb6d74af57680ee4593cb2475c7adf5937ffe367d71d424b193dc4d4
HEAD_REF master
)

Expand All @@ -15,23 +15,20 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DHWY_ENABLE_INSTALL=ON
-DHWY_ENABLE_EXAMPLES=OFF
-DHWY_ENABLE_TESTS=OFF
)

vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/hwy)
vcpkg_cmake_config_fixup(PACKAGE_NAME hwy CONFIG_PATH lib/cmake/hwy)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/hwy/highway_export.h" "defined(HWY_SHARED_DEFINE)" "1")
endif()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
# remove test-related pkg-config files that break vcpkg_fixup_pkgconfig
"${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libhwy-test.pc"
"${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libhwy-test.pc"
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_fixup_pkgconfig()

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
4 changes: 4 additions & 0 deletions ports/highway/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
highway provides CMake targets:

find_package(hwy CONFIG REQUIRED)
target_link_libraries(main PRIVATE hwy::hwy)
2 changes: 1 addition & 1 deletion ports/highway/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highway",
"version": "1.0.4",
"version": "1.0.6",
"description": "Performance-portable, length-agnostic SIMD with runtime dispatch",
"homepage": "https://github.com/google/highway",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3197,7 +3197,7 @@
"port-version": 0
},
"highway": {
"baseline": "1.0.4",
"baseline": "1.0.6",
"port-version": 0
},
"hikogui": {
Expand Down
5 changes: 5 additions & 0 deletions versions/h-/highway.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "221bc90fda5b814132f77cac6e28750dc7525323",
"version": "1.0.6",
"port-version": 0
},
{
"git-tree": "d516ee6b19d52dce62aae1d9ced2b7d9b18cb5cf",
"version": "1.0.4",
Expand Down

0 comments on commit 576f3f1

Please sign in to comment.