Skip to content

Commit

Permalink
add module cppregpattern (#2388)
Browse files Browse the repository at this point in the history
  • Loading branch information
udaya2899 authored Jul 9, 2024
1 parent 5269e93 commit efa8bbc
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/cppregpattern/1.0.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "cppregpattern",
version = "1.0.1",
)
bazel_dep(name = "rules_license", version = "0.0.8")
29 changes: 29 additions & 0 deletions modules/cppregpattern/1.0.1/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git BUILD.bazel BUILD.bazel
new file mode 100644
index 00000000..d99b09e7
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,22 @@
+load("@rules_license//rules:license.bzl", "license")
+
+package(
+ default_applicable_licenses = [":license"],
+ default_visibility = ["//visibility:public"],
+)
+
+exports_files(["LICENSE"])
+
+license(
+ name = "license",
+ package_name = "cppregpattern",
+ license_kinds = [
+ "@rules_license//licenses/spdx:MIT",
+ ],
+)
+
+cc_library(
+ name = "registry",
+ hdrs = ["include/cppregpattern/registry.h"],
+ strip_include_prefix = "include/",
+)
\ No newline at end of file
8 changes: 8 additions & 0 deletions modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,5 @@
+module(
+ name = "cppregpattern",
+ version = "1.0.1",
+)
+bazel_dep(name = "rules_license", version = "0.0.8")
17 changes: 17 additions & 0 deletions modules/cppregpattern/1.0.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@cppregpattern//:registry'
10 changes: 10 additions & 0 deletions modules/cppregpattern/1.0.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/psalvaggio/cppregpattern/archive/17342e50c8248c750e8d35ca93d9f072e388ab58.tar.gz",
"integrity": "sha256-n/WIg6GYEkBrynLuBZg3C/V86ty3Vlf+YU/waFZr/6g=",
"strip_prefix": "cppregpattern-17342e50c8248c750e8d35ca93d9f072e388ab58",
"patch_strip": 0,
"patches": {
"module_dot_bazel.patch": "sha256-zmSrN0nyy0/42l47nd5U4xG0w6PHXxYTVDEPjSAMntM=",
"add_build_file.patch": "sha256-0TC1453qisEqtN4KhEnsUO3wSwT8E7vLp9afBfcxEXI="
}
}
17 changes: 17 additions & 0 deletions modules/cppregpattern/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/psalvaggio/cppregpattern",
"maintainers": [
{
"email": "[email protected]",
"github": "udaya2899",
"name": "Udaya Prakash Nageswaran"
}
],
"repository": [
"github:psalvaggio/cppregpattern"
],
"versions": [
"1.0.1"
],
"yanked_versions": {}
}

0 comments on commit efa8bbc

Please sign in to comment.