Skip to content

Commit

Permalink
Add websocketpp 0.8.2 (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten committed Jan 29, 2024
1 parent c217662 commit aca8cde
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/websocketpp/0.8.2/MODULE.bazel
@@ -0,0 +1,8 @@
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")
23 changes: 23 additions & 0 deletions modules/websocketpp/0.8.2/patches/add_build_file.patch
@@ -0,0 +1,23 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,20 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
+ name = "websocketpp",
+ hdrs = glob(["websocketpp/**/*.hpp"]),
+ defines = [
+ "ASIO_STANDALONE",
+ "_WEBSOCKETPP_CPP11_STL_",
+ ],
+ includes = ["."],
+ linkopts = [
+ "-lpthread",
+ "-lrt",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ "@asio",
+ "@zlib",
+ ],
+)
11 changes: 11 additions & 0 deletions modules/websocketpp/0.8.2/patches/module_dot_bazel.patch
@@ -0,0 +1,11 @@
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,8 @@
+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")
14 changes: 14 additions & 0 deletions modules/websocketpp/0.8.2/presubmit.yml
@@ -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/source.json
@@ -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
}
16 changes: 16 additions & 0 deletions modules/websocketpp/metadata.json
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/zaphoyd/websocketpp",
"maintainers": [
{
"email": "bcr-maintainers@bazel.build",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:zaphoyd/websocketpp"
],
"versions": [
"0.8.2"
],
"yanked_versions": {}
}

0 comments on commit aca8cde

Please sign in to comment.