Skip to content

Commit

Permalink
Add readerwriterqueue module to GCR. (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
jondo2010 authored Nov 2, 2023
1 parent 5d7a2fb commit 0d38157
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/readerwriterqueue/1.0.6/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module(
name = "readerwriterqueue",
version = "1.0.6",
compatibility_level = 1,
)
bazel_dep(name = "rules_cc", version = "0.0.9")
14 changes: 14 additions & 0 deletions modules/readerwriterqueue/1.0.6/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,11 @@
+""" Builds readerwriterqueue.
+"""
+
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
+ name = "readerwriterqueue",
+ hdrs = glob(["*.h"]),
+ include_prefix = "moodycamel",
+ visibility = ["//visibility:public"],
+)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,6 @@
+module(
+ name = "readerwriterqueue",
+ version = "1.0.6",
+ compatibility_level = 1,
+)
+bazel_dep(name = "rules_cc", version = "0.0.9")
13 changes: 13 additions & 0 deletions modules/readerwriterqueue/1.0.6/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@readerwriterqueue'
10 changes: 10 additions & 0 deletions modules/readerwriterqueue/1.0.6/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/cameron314/readerwriterqueue/archive/refs/tags/v1.0.6.tar.gz",
"integrity": "sha256-/Gj1W71JqLZGRiaV4Xd/uPLAtPNC1eZXQTUhExK6VsE=",
"strip_prefix": "readerwriterqueue-1.0.6",
"patches": {
"add_build_file.patch": "sha256-cQvtwaC3qZohBAlavmZEzNwPGablvYdM71xtyAvfUlY=",
"module_dot_bazel.patch": "sha256-sfn6zL3p5M/dRiNLw3Y8+xzwK7HLewo3k0G22iwb2oo="
},
"patch_strip": 0
}
11 changes: 11 additions & 0 deletions modules/readerwriterqueue/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"homepage": "https://github.com/cameron314/readerwriterqueue",
"maintainers": [],
"repository": [
"github:cameron314/readerwriterqueue"
],
"versions": [
"1.0.6"
],
"yanked_versions": {}
}

0 comments on commit 0d38157

Please sign in to comment.