From 0d381570a4a125261a4012eefdce2dd2689a7ce4 Mon Sep 17 00:00:00 2001 From: John Hughes Date: Thu, 2 Nov 2023 20:33:14 +0100 Subject: [PATCH] Add readerwriterqueue module to GCR. (#1088) BUILD file contents copies from https://github.com/mvukov/rules_ros2/blob/main/repositories/readerwriterqueue.BUILD.bazel. --- modules/readerwriterqueue/1.0.6/MODULE.bazel | 6 ++++++ .../1.0.6/patches/add_build_file.patch | 14 ++++++++++++++ .../1.0.6/patches/module_dot_bazel.patch | 9 +++++++++ modules/readerwriterqueue/1.0.6/presubmit.yml | 13 +++++++++++++ modules/readerwriterqueue/1.0.6/source.json | 10 ++++++++++ modules/readerwriterqueue/metadata.json | 11 +++++++++++ 6 files changed, 63 insertions(+) create mode 100644 modules/readerwriterqueue/1.0.6/MODULE.bazel create mode 100644 modules/readerwriterqueue/1.0.6/patches/add_build_file.patch create mode 100644 modules/readerwriterqueue/1.0.6/patches/module_dot_bazel.patch create mode 100644 modules/readerwriterqueue/1.0.6/presubmit.yml create mode 100644 modules/readerwriterqueue/1.0.6/source.json create mode 100644 modules/readerwriterqueue/metadata.json diff --git a/modules/readerwriterqueue/1.0.6/MODULE.bazel b/modules/readerwriterqueue/1.0.6/MODULE.bazel new file mode 100644 index 00000000000..9cad6d50a71 --- /dev/null +++ b/modules/readerwriterqueue/1.0.6/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") diff --git a/modules/readerwriterqueue/1.0.6/patches/add_build_file.patch b/modules/readerwriterqueue/1.0.6/patches/add_build_file.patch new file mode 100644 index 00000000000..782cfaec29d --- /dev/null +++ b/modules/readerwriterqueue/1.0.6/patches/add_build_file.patch @@ -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"], ++) diff --git a/modules/readerwriterqueue/1.0.6/patches/module_dot_bazel.patch b/modules/readerwriterqueue/1.0.6/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..2f864776e98 --- /dev/null +++ b/modules/readerwriterqueue/1.0.6/patches/module_dot_bazel.patch @@ -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") diff --git a/modules/readerwriterqueue/1.0.6/presubmit.yml b/modules/readerwriterqueue/1.0.6/presubmit.yml new file mode 100644 index 00000000000..8690a23b0f7 --- /dev/null +++ b/modules/readerwriterqueue/1.0.6/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + build_targets: + - '@readerwriterqueue' diff --git a/modules/readerwriterqueue/1.0.6/source.json b/modules/readerwriterqueue/1.0.6/source.json new file mode 100644 index 00000000000..6d923e95c12 --- /dev/null +++ b/modules/readerwriterqueue/1.0.6/source.json @@ -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 +} diff --git a/modules/readerwriterqueue/metadata.json b/modules/readerwriterqueue/metadata.json new file mode 100644 index 00000000000..151514e435a --- /dev/null +++ b/modules/readerwriterqueue/metadata.json @@ -0,0 +1,11 @@ +{ + "homepage": "https://github.com/cameron314/readerwriterqueue", + "maintainers": [], + "repository": [ + "github:cameron314/readerwriterqueue" + ], + "versions": [ + "1.0.6" + ], + "yanked_versions": {} +}