mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 05:39:40 +08:00
[ls-qpack] Detect xxhash with pkgconf as upstream (#40751)
This commit is contained in:
parent
05f7a52d9e
commit
4e08971f3d
@ -1,5 +1,5 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index ff26bc3..6df9654 100644
|
index 56c3e23..7a4a2d6 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -17,7 +17,10 @@ option(LSQPACK_XXH "Include XXH" ON)
|
@@ -17,7 +17,10 @@ option(LSQPACK_XXH "Include XXH" ON)
|
||||||
|
@ -37,7 +37,8 @@ file(REMOVE_RECURSE
|
|||||||
file(READ "${CURRENT_PACKAGES_DIR}/share/unofficial-ls-qpack/unofficial-ls-qpack-config.cmake" cmake_config)
|
file(READ "${CURRENT_PACKAGES_DIR}/share/unofficial-ls-qpack/unofficial-ls-qpack-config.cmake" cmake_config)
|
||||||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/unofficial-ls-qpack/unofficial-ls-qpack-config.cmake"
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/unofficial-ls-qpack/unofficial-ls-qpack-config.cmake"
|
||||||
"include(CMakeFindDependencyMacro)
|
"include(CMakeFindDependencyMacro)
|
||||||
find_dependency(xxHash CONFIG)
|
find_dependency(PkgConfig)
|
||||||
|
pkg_check_modules(XXH REQUIRED IMPORTED_TARGET libxxhash)
|
||||||
${cmake_config}
|
${cmake_config}
|
||||||
")
|
")
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ls-qpack",
|
"name": "ls-qpack",
|
||||||
"version": "2.5.4",
|
"version": "2.5.4",
|
||||||
"port-version": 2,
|
"port-version": 3,
|
||||||
"description": "QPACK compression library for use with HTTP/3",
|
"description": "QPACK compression library for use with HTTP/3",
|
||||||
"homepage": "https://github.com/litespeedtech/ls-qpack",
|
"homepage": "https://github.com/litespeedtech/ls-qpack",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index 1a1f8e9..cf207d2 100644
|
index 1a1f8e9..56c3e23 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -20,9 +20,12 @@ add_library(ls-qpack "")
|
@@ -20,9 +20,13 @@ add_library(ls-qpack "")
|
||||||
target_include_directories(ls-qpack PUBLIC .)
|
target_include_directories(ls-qpack PUBLIC .)
|
||||||
target_sources(ls-qpack PRIVATE lsqpack.c)
|
target_sources(ls-qpack PRIVATE lsqpack.c)
|
||||||
|
|
||||||
@ -10,8 +10,9 @@ index 1a1f8e9..cf207d2 100644
|
|||||||
if(LSQPACK_XXH)
|
if(LSQPACK_XXH)
|
||||||
target_sources(ls-qpack PRIVATE deps/xxhash/xxhash.c)
|
target_sources(ls-qpack PRIVATE deps/xxhash/xxhash.c)
|
||||||
+else()
|
+else()
|
||||||
+ find_package(xxHash CONFIG REQUIRED)
|
+ find_package(PkgConfig REQUIRED)
|
||||||
+ target_link_libraries(ls-qpack PUBLIC xxHash::xxhash)
|
+ pkg_check_modules(XXH REQUIRED IMPORTED_TARGET libxxhash)
|
||||||
|
+ target_link_libraries(ls-qpack PUBLIC PkgConfig::XXH)
|
||||||
+ set(LSQPACK_DEPENDS "libxxhash")
|
+ set(LSQPACK_DEPENDS "libxxhash")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -5518,7 +5518,7 @@
|
|||||||
},
|
},
|
||||||
"ls-qpack": {
|
"ls-qpack": {
|
||||||
"baseline": "2.5.4",
|
"baseline": "2.5.4",
|
||||||
"port-version": 2
|
"port-version": 3
|
||||||
},
|
},
|
||||||
"ltla-aarand": {
|
"ltla-aarand": {
|
||||||
"baseline": "2023-03-19",
|
"baseline": "2023-03-19",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "c8b9ac167ce7e831b1434cff6f3da33cdcee974d",
|
||||||
|
"version": "2.5.4",
|
||||||
|
"port-version": 3
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "1d9eb013f6b98de2b479869b6571ac7d0c929b0e",
|
"git-tree": "1d9eb013f6b98de2b479869b6571ac7d0c929b0e",
|
||||||
"version": "2.5.4",
|
"version": "2.5.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user