Skip to content

Commit

Permalink
Create 0.8.2.bcr.1 branch for websocketpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
carbo-asr committed Jul 10, 2024
1 parent e0c70f7 commit 9742cc2
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 13 deletions.
9 changes: 9 additions & 0 deletions modules/websocketpp/0.8.2.bcr.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module(
name = "websocketpp",
version = "0.8.2",
compatibility_level = 1,
)
bazel_dep(name = "asio", version = "1.28.2")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "zlib", version = "1.3")
bazel_dep(name = "platforms", version = "0.0.10")
28 changes: 28 additions & 0 deletions modules/websocketpp/0.8.2.bcr.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,25 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
+ name = "websocketpp",
+ hdrs = glob(["websocketpp/**/*.hpp"]),
+ defines = [
+ "ASIO_STANDALONE",
+ "_WEBSOCKETPP_CPP11_STL_",
+ ],
+ includes = ["."],
+ linkopts = select({
+ "@platforms//os:osx": [
+ "-lpthread",
+ ],
+ "//conditions:default": [
+ "-lpthread",
+ "-lrt",
+ ],
+ }),
+ visibility = ["//visibility:public"],
+ deps = [
+ "@asio",
+ "@zlib",
+ ],
+)
12 changes: 12 additions & 0 deletions modules/websocketpp/0.8.2.bcr.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,9 @@
+module(
+ name = "websocketpp",
+ version = "0.8.2",
+ compatibility_level = 1,
+)
+bazel_dep(name = "asio", version = "1.28.2")
+bazel_dep(name = "rules_cc", version = "0.0.9")
+bazel_dep(name = "zlib", version = "1.3")
+bazel_dep(name = "platforms", version = "0.0.10")
14 changes: 14 additions & 0 deletions modules/websocketpp/0.8.2.bcr.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
bazel: [6.x, 7.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- "@websocketpp"
10 changes: 10 additions & 0 deletions modules/websocketpp/0.8.2.bcr.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/zaphoyd/websocketpp/archive/refs/tags/0.8.2.tar.gz",
"integrity": "sha256-bOiJ2F7Nwtj6B0CNZ4fnNSUQdQ2qZrWtRKrLR76nZ1U=",
"strip_prefix": "websocketpp-0.8.2",
"patches": {
"add_build_file.patch": "sha256-KhVOfO47POB3xqoHdeOs+dYbn0dp0aAQddYt8ZWZqcI=",
"module_dot_bazel.patch": "sha256-Bq9+2iYvtN8TR5zGaKTIdS3vYsx/gEP0pM2xLWuMO2U="
},
"patch_strip": 0
}
1 change: 0 additions & 1 deletion modules/websocketpp/0.8.2/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ module(
bazel_dep(name = "asio", version = "1.28.2")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "zlib", version = "1.3")
bazel_dep(name = "platforms", version = "0.0.10")
15 changes: 5 additions & 10 deletions modules/websocketpp/0.8.2/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,25 @@
@@ -0,0 +1,20 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
Expand All @@ -11,15 +11,10 @@
+ "_WEBSOCKETPP_CPP11_STL_",
+ ],
+ includes = ["."],
+ linkopts = select({
+ "@platforms//os:osx": [
+ "-lpthread",
+ ],
+ "//conditions:default": [
+ "-lpthread",
+ "-lrt",
+ ],
+ }),
+ linkopts = [
+ "-lpthread",
+ "-lrt",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ "@asio",
Expand Down
3 changes: 1 addition & 2 deletions modules/websocketpp/0.8.2/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,9 @@
@@ -0,0 +1,8 @@
+module(
+ name = "websocketpp",
+ version = "0.8.2",
Expand All @@ -9,4 +9,3 @@
+bazel_dep(name = "asio", version = "1.28.2")
+bazel_dep(name = "rules_cc", version = "0.0.9")
+bazel_dep(name = "zlib", version = "1.3")
+bazel_dep(name = "platforms", version = "0.0.10")

0 comments on commit 9742cc2

Please sign in to comment.