Skip to content

Commit

Permalink
feat: add cpp-httplib 0.16.3 (#2664)
Browse files Browse the repository at this point in the history
- add newer cpp-httplib
- enable openssl and zlib support
- need skip url stability check

---------

Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
  • Loading branch information
wep21 authored Aug 26, 2024
1 parent acd7ebb commit db418c3
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 1 deletion.
10 changes: 10 additions & 0 deletions modules/cpp-httplib/0.16.3/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module(
name = "cpp-httplib",
version = "0.16.3",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 1,
)

bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
22 changes: 22 additions & 0 deletions modules/cpp-httplib/0.16.3/overlay/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cc_library(
name = "httplib",
hdrs = ["httplib.h"],
features = [
"parse_headers",
],
deps = [
"@boringssl//:ssl",
"@zlib//:zlib",
],
copts = [
"-DCPPHTTPLIB_OPENSSL_SUPPORT",
"-DCPPHTTPLIB_ZLIB_SUPPORT",
],
visibility = ["//visibility:public"],
)

alias(
name = "cpp-httplib",
actual = ":httplib",
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions modules/cpp-httplib/0.16.3/overlay/MODULE.bazel
19 changes: 19 additions & 0 deletions modules/cpp-httplib/0.16.3/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
matrix:
platform:
- debian10
- debian11
- macos
- macos_arm64
- ubuntu2004
- ubuntu2204
- windows
bazel: [7.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--process_headers_in_dependencies'
build_targets:
- '@cpp-httplib//...'
10 changes: 10 additions & 0 deletions modules/cpp-httplib/0.16.3/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.16.3.tar.gz",
"integrity": "sha256-wXQvxxeaquKmetm7oHQLfp/69PXmL+71MQHs3vFHhxY=",
"strip_prefix": "cpp-httplib-0.16.3",
"overlay": {
"BUILD.bazel": "sha256-1tUtwDTzp+d5z9nc43MLRo4TGzqmlUJ3awICgCgJvlc=",
"MODULE.bazel": "sha256-UKcKGecgxf7ZT4wCYXO9zEYskZqwjiHoMdeQOh0Cnxk="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/cpp-httplib/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"github:yhirose/cpp-httplib"
],
"versions": [
"0.7.15"
"0.7.15",
"0.16.3"
],
"yanked_versions": {}
}

0 comments on commit db418c3

Please sign in to comment.