Skip to content

Commit

Permalink
add gsl to bcr (bazelbuild#2385)
Browse files Browse the repository at this point in the history
added gsl to bcr

---------

Co-authored-by: ziad-fernride <[email protected]>
  • Loading branch information
2 people authored and aiuto committed Jul 10, 2024
1 parent aabc4c9 commit b693540
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/gsl/4.0.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module(
name = "gsl",
version = "4.0.0",
compatibility_level = 4,
)
25 changes: 25 additions & 0 deletions modules/gsl/4.0.0/patches/build_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,22 @@
+cc_library(
+ name = "gsl",
+ hdrs = [
+ "gsl/algorithm",
+ "gsl/assert",
+ "gsl/byte",
+ "gsl/gsl",
+ "gsl/gsl_algorithm",
+ "gsl/gsl_assert",
+ "gsl/gsl_byte",
+ "gsl/gsl_narrow",
+ "gsl/gsl_util",
+ "gsl/narrow",
+ "gsl/pointers",
+ "gsl/span",
+ "gsl/span_ext",
+ "gsl/string_span",
+ "gsl/util",
+ ],
+ includes = ["."],
+ visibility = ["//visibility:public"],
+)
8 changes: 8 additions & 0 deletions modules/gsl/4.0.0/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,5 @@
+module(
+ name = "gsl",
+ version = "4.0.0",
+ compatibility_level = 4,
+)
11 changes: 11 additions & 0 deletions modules/gsl/4.0.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
matrix:
bazel: ["6.x", "7.x"]
platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"]

tasks:
verify_targets:
name: Verify build targets
bazel: ${{ bazel }}
platform: ${{ platform }}
build_targets:
- '@gsl//:gsl'
10 changes: 10 additions & 0 deletions modules/gsl/4.0.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-65H8sQpqpcyx0iTgelbI7P/pobtgH6GEgnbsRqIgC/s=",
"patches": {
"build_dot_bazel.patch": "sha256-3liG34A3S/xTIz/NlV1JbBs0sM+IZzXiXOsTnHiTlKo=",
"module_dot_bazel.patch": "sha256-I5KhvDC32BRXw0A8KKVQ4MTaSFRWPo7Nhiy/bxy7Oic="
},
"strip_prefix": "GSL-4.0.0/include",
"patch_strip": 0,
"url": "https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip"
}
15 changes: 15 additions & 0 deletions modules/gsl/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"homepage": "https://github.com/microsoft/GSL",
"maintainers": [
{
"email": "[email protected]",
"github": "shabanzd",
"name": "Ziad Shaban"
}
],
"repository": [
"https://github.com/microsoft/GSL"
],
"versions": ["4.0.0"],
"yanked_versions": {}
}

0 comments on commit b693540

Please sign in to comment.