Skip to content

Commit 8d5dfe3

Browse files
authored
Update websocketpp module (#6493)
Updated dependencies per conversation on #6441 (comment)
1 parent 310fc93 commit 8d5dfe3

File tree

6 files changed

+102
-1
lines changed

6 files changed

+102
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module(
2+
name = "websocketpp",
3+
version = "0.8.2.bcr.5",
4+
bazel_compatibility = [">=7.2.1"],
5+
compatibility_level = 1,
6+
)
7+
8+
bazel_dep(name = "asio", version = "1.28.2")
9+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
10+
bazel_dep(name = "boost.asio", version = "1.89.0.bcr.1")
11+
bazel_dep(name = "platforms", version = "1.0.0")
12+
bazel_dep(name = "rules_cc", version = "0.2.4")
13+
bazel_dep(name = "zlib", version = "1.3")
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
2+
load("@rules_cc//cc:defs.bzl", "cc_library")
3+
4+
bool_flag(
5+
name = "use_boost",
6+
build_setting_default = False,
7+
)
8+
9+
config_setting(
10+
name = "use_boost_setting",
11+
flag_values = {":use_boost": "True"},
12+
)
13+
14+
cc_library(
15+
name = "websocketpp",
16+
hdrs = glob(["websocketpp/**/*.hpp"]),
17+
defines = select({
18+
":use_boost_setting": ["_WEBSOCKETPP_CPP11_STL_"],
19+
"//conditions:default": [
20+
"_WEBSOCKETPP_CPP11_STL_",
21+
"ASIO_STANDALONE",
22+
],
23+
}),
24+
includes = ["."],
25+
linkopts = select({
26+
"@platforms//os:osx": [
27+
"-lpthread",
28+
],
29+
"//conditions:default": [
30+
"-lpthread",
31+
"-lrt",
32+
],
33+
}),
34+
visibility = ["//visibility:public"],
35+
deps = [
36+
"@zlib",
37+
] + select({
38+
":use_boost_setting": ["@boost.asio"],
39+
"//conditions:default": ["@asio"],
40+
}),
41+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module(
2+
name = "websocketpp",
3+
version = "0.8.2.bcr.5",
4+
bazel_compatibility = [">=7.2.1"],
5+
compatibility_level = 1,
6+
)
7+
8+
bazel_dep(name = "asio", version = "1.28.2")
9+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
10+
bazel_dep(name = "boost.asio", version = "1.89.0.bcr.1")
11+
bazel_dep(name = "platforms", version = "1.0.0")
12+
bazel_dep(name = "rules_cc", version = "0.2.4")
13+
bazel_dep(name = "zlib", version = "1.3")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2004
5+
- macos
6+
- macos_arm64
7+
bazel:
8+
- 7.x
9+
tasks:
10+
verify_targets:
11+
name: Verify build targets
12+
platform: ${{ platform }}
13+
bazel: ${{ bazel }}
14+
build_targets:
15+
- "@websocketpp"
16+
verify_targets_boost:
17+
name: Verify build targets using boost asio
18+
platform: ${{ platform }}
19+
bazel: ${{ bazel }}
20+
build_targets:
21+
- "@websocketpp"
22+
build_flags:
23+
- '--@websocketpp//:use_boost=true'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"url": "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
3+
"integrity": "sha256-bOiJ2F7Nwtj6B0CNZ4fnNSUQdQ2qZrWtRKrLR76nZ1U=",
4+
"strip_prefix": "websocketpp-0.8.2",
5+
"overlay": {
6+
"BUILD.bazel": "sha256-Awc0CFGb0fJhuWFn/zl7DUM/95rnuXc+k8YN7D5QQWE=",
7+
"MODULE.bazel": "sha256-tRMhLszM73Px34nq14eqDhn0VSV6Z9ZHv+j0PoZLlUc="
8+
},
9+
"patch_strip": 0
10+
}

modules/websocketpp/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"0.8.2.bcr.1",
1515
"0.8.2.bcr.2",
1616
"0.8.2.bcr.3",
17-
"0.8.2.bcr.4"
17+
"0.8.2.bcr.4",
18+
"0.8.2.bcr.5"
1819
],
1920
"yanked_versions": {}
2021
}

0 commit comments

Comments
 (0)