Skip to content

Commit b9d5c69

Browse files
authored
[cpp-httplib] Support Zstandard(zstd) feature in v0.20.0 (microsoft#44581)
1 parent b1d8051 commit b9d5c69

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

ports/cpp-httplib/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
1313
brotli HTTPLIB_REQUIRE_BROTLI
1414
openssl HTTPLIB_REQUIRE_OPENSSL
1515
zlib HTTPLIB_REQUIRE_ZLIB
16+
zstd HTTPLIB_REQUIRE_ZSTD
1617
)
1718

1819
set(VCPKG_BUILD_TYPE release) # header-only port
@@ -24,6 +25,7 @@ vcpkg_cmake_configure(
2425
-DHTTPLIB_USE_OPENSSL_IF_AVAILABLE=OFF
2526
-DHTTPLIB_USE_ZLIB_IF_AVAILABLE=OFF
2627
-DHTTPLIB_USE_BROTLI_IF_AVAILABLE=OFF
28+
-DHTTPLIB_USE_ZSTD_IF_AVAILABLE=OFF
2729
)
2830

2931
vcpkg_cmake_install()

ports/cpp-httplib/vcpkg.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "cpp-httplib",
33
"version": "0.20.0",
4+
"port-version": 1,
45
"description": "A single file C++11 header-only HTTP/HTTPS server and client library",
56
"homepage": "https://github.com/yhirose/cpp-httplib",
67
"license": "MIT",
@@ -35,6 +36,12 @@
3536
"dependencies": [
3637
"zlib"
3738
]
39+
},
40+
"zstd": {
41+
"description": "Enables zstd support",
42+
"dependencies": [
43+
"zstd"
44+
]
3845
}
3946
}
4047
}

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@
19061906
},
19071907
"cpp-httplib": {
19081908
"baseline": "0.20.0",
1909-
"port-version": 0
1909+
"port-version": 1
19101910
},
19111911
"cpp-ipc": {
19121912
"baseline": "1.3.0",

versions/c-/cpp-httplib.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "504cadb74ace89d1afed1c10afceebf046baae28",
5+
"version": "0.20.0",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "2cb1201ff0d73510fdaf89d9102f7f818fc74f78",
510
"version": "0.20.0",

0 commit comments

Comments
 (0)