From 81e65f71205db9fd928938c94642af4f94041104 Mon Sep 17 00:00:00 2001 From: miyanyan <40262194+miyanyan@users.noreply.github.com> Date: Wed, 31 Jan 2024 04:40:10 +0800 Subject: [PATCH] [cpp-httplib] update to 0.15.0 (#36438) * [cpp-httplib] update to 0.15.0 * [cpp-httplib] update versions * Update fix-find-brotli.patch Change the EOL from CRLF to LF * [cpp-httplib] change the EOL from CRLF to LF * [cpp-httplib] update to 0.15.1 * [cpp-httplib] update versions * Update cpp-httplib.json --------- Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> --- ports/cpp-httplib/fix-find-brotli.patch | 15 ++++++++------- ports/cpp-httplib/portfile.cmake | 2 +- ports/cpp-httplib/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/c-/cpp-httplib.json | 5 +++++ 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/ports/cpp-httplib/fix-find-brotli.patch b/ports/cpp-httplib/fix-find-brotli.patch index 4d749360b4c20d..33c730df306e3a 100644 --- a/ports/cpp-httplib/fix-find-brotli.patch +++ b/ports/cpp-httplib/fix-find-brotli.patch @@ -1,20 +1,21 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3515d77..556fb78 100644 +index 73de511..940b6ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -138,9 +138,9 @@ endif() - # Adds our cmake folder to the search path for find_package +@@ -141,10 +141,10 @@ endif() + # This is so we can use our custom FindBrotli.cmake list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") if(HTTPLIB_REQUIRE_BROTLI) - find_package(Brotli COMPONENTS encoder decoder common REQUIRED) + find_package(unofficial-brotli CONFIG REQUIRED) + set(HTTPLIB_IS_USING_BROTLI TRUE) elseif(HTTPLIB_USE_BROTLI_IF_AVAILABLE) - find_package(Brotli COMPONENTS encoder decoder common QUIET) + find_package(unofficial-brotli CONFIG QUIET) + set(HTTPLIB_IS_USING_BROTLI ${Brotli_FOUND}) endif() - # Just setting this variable here for people building in-tree - if(Brotli_FOUND) -@@ -223,9 +223,9 @@ target_link_libraries(${PROJECT_NAME} ${_INTERFACE_OR_PUBLIC} + +@@ -217,9 +217,9 @@ target_link_libraries(${PROJECT_NAME} ${_INTERFACE_OR_PUBLIC} # Needed for API from MacOS Security framework "$<$,$,$>:-framework CoreFoundation -framework Security>" # Can't put multiple targets in a single generator expression or it bugs out. @@ -27,7 +28,7 @@ index 3515d77..556fb78 100644 $<$:ZLIB::ZLIB> $<$:OpenSSL::SSL> $<$:OpenSSL::Crypto> -@@ -283,9 +283,6 @@ if(HTTPLIB_INSTALL) +@@ -275,9 +275,6 @@ if(HTTPLIB_INSTALL) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" diff --git a/ports/cpp-httplib/portfile.cmake b/ports/cpp-httplib/portfile.cmake index c57d66c12043a9..d0cd118430a49a 100644 --- a/ports/cpp-httplib/portfile.cmake +++ b/ports/cpp-httplib/portfile.cmake @@ -2,7 +2,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO yhirose/cpp-httplib REF "v${VERSION}" - SHA512 0e7955fc74b87550e260739abf2503b2b0aabb2e2925953956bef8ead9718367d075d37fb5468a40aa340d7bdafb06274e0770baab86b08c6a25020d96033b88 + SHA512 2be6dceb3a4277a23813baf7e27bad3f0e88504ce72e6fb551e98c2f5888f208fccf35c4f17bc34ec979eb3958da7fa6851993febcd50535094900533fae5709 HEAD_REF master PATCHES fix-find-brotli.patch diff --git a/ports/cpp-httplib/vcpkg.json b/ports/cpp-httplib/vcpkg.json index 058ef225eecb3c..d513b51b3dfa1f 100644 --- a/ports/cpp-httplib/vcpkg.json +++ b/ports/cpp-httplib/vcpkg.json @@ -1,6 +1,6 @@ { "name": "cpp-httplib", - "version": "0.14.3", + "version": "0.15.1", "description": "A single file C++11 header-only HTTP/HTTPS server and client library", "homepage": "https://github.com/yhirose/cpp-httplib", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 79abf41bf4f13e..4e050fb8b3bb9a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1825,7 +1825,7 @@ "port-version": 0 }, "cpp-httplib": { - "baseline": "0.14.3", + "baseline": "0.15.1", "port-version": 0 }, "cpp-ipc": { diff --git a/versions/c-/cpp-httplib.json b/versions/c-/cpp-httplib.json index 3bdfc2de49fed0..e3beb84943455d 100644 --- a/versions/c-/cpp-httplib.json +++ b/versions/c-/cpp-httplib.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "cf7ac80d06d049094fbf0742fcc99ecbd0c3396c", + "version": "0.15.1", + "port-version": 0 + }, { "git-tree": "6f65092ce5157b3cf987bf0daba4db53f5d10d37", "version": "0.14.3",