Skip to content

Commit

Permalink
Add asio 1.28.2 (#1178)
Browse files Browse the repository at this point in the history
* Add asio 1.28.2

Signed-off-by: tison <[email protected]>

* Update patches integrity

cat /path/to/file | openssl dgst -sha256 -binary | openssl base64 -A

Signed-off-by: tison <[email protected]>

* fix file name

Signed-off-by: tison <[email protected]>

---------

Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Dec 13, 2023
1 parent bbe41a1 commit c2248ed
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/asio/1.28.2/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module(
name = "asio",
version = "1.28.2",
compatibility_level = 1,
)
bazel_dep(name = "rules_cc", version = "0.0.1")
12 changes: 12 additions & 0 deletions modules/asio/1.28.2/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,9 @@
+cc_library(
+ name = "asio",
+ srcs = glob([
+ "**/*.hpp",
+ "**/*.ipp",
+ ]),
+ includes = ["."],
+ visibility = ["//visibility:public"],
+)
9 changes: 9 additions & 0 deletions modules/asio/1.28.2/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,6 @@
+module(
+ name = "asio",
+ version = "1.28.2",
+ compatibility_level = 1,
+)
+bazel_dep(name = "rules_cc", version = "0.0.1")
13 changes: 13 additions & 0 deletions modules/asio/1.28.2/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- centos7
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@asio//:asio'
10 changes: 10 additions & 0 deletions modules/asio/1.28.2/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-QXU27U0xZFtVDWxHWpUlRNGqswoE1yKObObKk1vy3Bs=",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-dnwlTSkBLcsJ1GjaGSfxhTgxj0XQrm4gXyPIYh9sORE=",
"module_dot_bazel.patch": "sha256-6S/OByNueI0++DvfiFcW5yfQ83ECPfF6vMcDdTzkIC8="
},
"strip_prefix": "asio-asio-1-28-2/asio/include",
"url": "https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-28-2.zip"
}
8 changes: 7 additions & 1 deletion modules/asio/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
"email": "[email protected]",
"github": "ltekieli",
"name": "Lukasz Tekieli"
},
{
"email": "[email protected]",
"github": "tisonkun",
"name": "Zili Chen"
}
],
"repository": [
"github:chriskohlhoff/asio"
],
"versions": [
"1.21.0"
"1.21.0",
"1.28.2"
],
"yanked_versions": {}
}

0 comments on commit c2248ed

Please sign in to comment.