mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 23:29:03 +08:00
[hexl] Update version to 1.2.1 (#19468)
* update HEXL v1.2 * added x-add-version output * rename intel-hexl to hexl * update x-add-version output * update homepage * Update version database * update portfile * update portfile * add find GIT * Update version database * Update ports/hexl/portfile.cmake * use MSBUILD for Windows * Update version database * set generator * Update version database * update typo * Update version database * Fix build error * Update ports/hexl/portfile.cmake * Re-fix the dependencies * update hexl version * Update version database * locate git, remove unused file * Update version database * update version, add dependency * update dependency * Update version database * update HEXL to 1.2.1 * Update version database * Fix version database. Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
5835ade57b
commit
39d0da3a71
@ -1,101 +0,0 @@
|
||||
From 16095678843dadf13b0f786ddf53c726e837bc74 Mon Sep 17 00:00:00 2001
|
||||
From: Wei Dai <wei.dai@microsoft.com>
|
||||
Date: Tue, 8 Jun 2021 15:55:18 -0700
|
||||
Subject: [PATCH] Disabled downloading cpu-features.
|
||||
|
||||
---
|
||||
CMakeLists.txt | 9 ++++++++-
|
||||
hexl/CMakeLists.txt | 15 ++++++---------
|
||||
2 files changed, 14 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 05e42f9..a7ad993 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -183,7 +183,14 @@ message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
|
||||
#------------------------------------------------------------------------------
|
||||
# Third-party code...
|
||||
#------------------------------------------------------------------------------
|
||||
-add_subdirectory(cmake/cpu-features)
|
||||
+find_package(CpuFeatures CONFIG REQUIRED)
|
||||
+if(CpuFeatures_FOUND)
|
||||
+ add_library(cpu_features ALIAS CpuFeatures::cpu_features)
|
||||
+ get_target_property(
|
||||
+ CpuFeatures_INCLUDE_DIR
|
||||
+ CpuFeatures::cpu_features
|
||||
+ INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+endif()
|
||||
|
||||
if (HEXL_TESTING OR HEXL_BENCHMARK OR HEXL_DEBUG)
|
||||
if(NOT TARGET Threads::Threads)
|
||||
diff --git a/hexl/CMakeLists.txt b/hexl/CMakeLists.txt
|
||||
index 7e603e3..b83a94e 100644
|
||||
--- a/hexl/CMakeLists.txt
|
||||
+++ b/hexl/CMakeLists.txt
|
||||
@@ -44,6 +44,7 @@ target_include_directories(hexl
|
||||
PUBLIC $<BUILD_INTERFACE:${HEXL_INC_ROOT_DIR}> # Public headers
|
||||
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> # Public headers
|
||||
)
|
||||
+target_include_directories(hexl PUBLIC ${CpuFeatures_INCLUDE_DIR}) # Public headers
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
target_compile_options(hexl PRIVATE -Wall -Wconversion -Wshadow -pedantic -Wextra
|
||||
@@ -74,7 +75,7 @@ else ()
|
||||
# For proper export of IntelHEXLConfig.cmake / IntelHEXLTargts.cmake,
|
||||
# we avoid explicitly linking dependencies via target_link_libraries, since
|
||||
# this would add dependencies to the exported hexl target.
|
||||
- add_dependencies(hexl cpu_features)
|
||||
+ target_link_libraries(hexl PRIVATE cpu_features)
|
||||
if (HEXL_DEBUG)
|
||||
add_dependencies(hexl gflags)
|
||||
# Manually add logging include directory
|
||||
@@ -95,42 +96,38 @@ else ()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
add_custom_command(TARGET hexl POST_BUILD
|
||||
COMMAND ar -x $<TARGET_FILE:hexl>
|
||||
- COMMAND ar -x $<TARGET_FILE:cpu_features>
|
||||
COMMAND ar -x $<TARGET_FILE:gflags>
|
||||
COMMAND ar -x $<TARGET_FILE:easyloggingpp>
|
||||
COMMAND ar -qcs $<TARGET_FILE:hexl> *.o
|
||||
COMMAND rm -f *.o
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
- DEPENDS hexl cpu_features gflags easyloggingpp
|
||||
+ DEPENDS hexl gflags easyloggingpp
|
||||
)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
add_custom_command(TARGET hexl POST_BUILD
|
||||
COMMAND lib.exe /OUT:$<TARGET_FILE:hexl>
|
||||
$<TARGET_FILE:hexl>
|
||||
- $<TARGET_FILE:cpu_features>
|
||||
$<TARGET_FILE:gflags>
|
||||
$<TARGET_FILE:easyloggingpp>
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
- DEPENDS hexl cpu_features gflags easyloggingpp
|
||||
+ DEPENDS hexl gflags easyloggingpp
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
add_custom_command(TARGET hexl POST_BUILD
|
||||
COMMAND ar -x $<TARGET_FILE:hexl>
|
||||
- COMMAND ar -x $<TARGET_FILE:cpu_features>
|
||||
COMMAND ar -qcs $<TARGET_FILE:hexl> *.o
|
||||
COMMAND rm -f *.o
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
- DEPENDS hexl cpu_features
|
||||
+ DEPENDS hexl
|
||||
)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
add_custom_command(TARGET hexl POST_BUILD
|
||||
COMMAND lib.exe /OUT:$<TARGET_FILE:hexl>
|
||||
$<TARGET_FILE:hexl>
|
||||
- $<TARGET_FILE:cpu_features>
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
- DEPENDS hexl cpu_features
|
||||
+ DEPENDS hexl
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
--
|
||||
2.25.1
|
||||
|
@ -1,31 +0,0 @@
|
||||
From b399342016573d6f45bd5bb1aa8d4df358e0761c Mon Sep 17 00:00:00 2001
|
||||
From: Wei Dai <wei.dai@microsoft.com>
|
||||
Date: Wed, 16 Jun 2021 18:21:51 -0700
|
||||
Subject: [PATCH] Fixed config.
|
||||
|
||||
---
|
||||
cmake/HEXLConfig.cmake.in | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/cmake/HEXLConfig.cmake.in b/cmake/HEXLConfig.cmake.in
|
||||
index 57089bd..f112380 100644
|
||||
--- a/cmake/HEXLConfig.cmake.in
|
||||
+++ b/cmake/HEXLConfig.cmake.in
|
||||
@@ -11,6 +11,14 @@
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
+include(CMakeFindDependencyMacro)
|
||||
+find_dependency(CpuFeatures)
|
||||
+if(NOT CpuFeatures_FOUND)
|
||||
+ message(WARNING "Could not find dependency `CpuFeatures` required by this configuration")
|
||||
+ set(HEXL_FOUND FALSE)
|
||||
+ return()
|
||||
+endif()
|
||||
+
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/HEXLTargets.cmake)
|
||||
|
||||
# Defines HEXL_FOUND: If Intel HEXL library was found
|
||||
--
|
||||
2.25.1
|
||||
|
@ -4,12 +4,9 @@ vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO intel/hexl
|
||||
REF 2dc1db6824be3fc89d13740efd0270ec9afec77e
|
||||
SHA512 aaa80dc53a21586d763a2b84b40d60062020470988422601bc5e9c2b31c6263847a97ea8f956d002a95e2d5e843cafa96fabdfd8b8ee892c7a7b9747133adebb
|
||||
HEAD_REF main
|
||||
PATCHES
|
||||
disable_downloading_cpu_features.patch
|
||||
find_dependency_cpu_features.patch
|
||||
REF df6c26fdd2f2752e2bfa17981be113ff32946375
|
||||
SHA512 c4353410091b019dad05326818d66bc74b438a26ec28192da20f13581781556b7aad11c3e9c2c2c9ed7ec66bc422152e2a2811206109b39939f30c91952ef765
|
||||
HEAD_REF 1.2.1
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
@ -18,23 +15,21 @@ else()
|
||||
set(HEXL_SHARED ON)
|
||||
endif()
|
||||
|
||||
vcpkg_find_acquire_program(GIT)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
"-DHEXL_DEBUG=OFF"
|
||||
"-DHEXL_BENCHMARK=OFF"
|
||||
"-DHEXL_EXPORT=ON"
|
||||
"-DHEXL_COVERAGE=OFF"
|
||||
"-DHEXL_TESTING=OFF"
|
||||
"-DHEXL_SHARED_LIB=${HEXL_SHARED}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake/hexl-1.2.1")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
{
|
||||
"name": "hexl",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.1",
|
||||
"description": "Intel® HEXL is an open-source library which provides efficient implementations of integer arithmetic on Galois fields.",
|
||||
"homepage": "https://github.com/intel/hexl",
|
||||
"supports": "x64 & !(windows & !static)",
|
||||
"dependencies": [
|
||||
"cpu-features",
|
||||
"easyloggingpp",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
@ -2533,7 +2533,7 @@
|
||||
"port-version": 0
|
||||
},
|
||||
"hexl": {
|
||||
"baseline": "1.1.0",
|
||||
"baseline": "1.2.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"hffix": {
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "14a96b80d062ba4dea3d18839c4d737792584a3c",
|
||||
"version": "1.2.1",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "abbac3846835a67c818b2fd51c32a1e859aca7b3",
|
||||
"version": "1.1.0",
|
||||
|
Loading…
Reference in New Issue
Block a user