Skip to content

Commit

Permalink
Add glm 1.0.0 (#1528)
Browse files Browse the repository at this point in the history
Add glm 1.0.0
  • Loading branch information
Vertexwahn authored Feb 25, 2024
1 parent 4e954b4 commit 7b0a4b2
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
6 changes: 6 additions & 0 deletions modules/glm/1.0.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module(
name = "glm",
version = "1.0.0",
)

bazel_dep(name = "rules_cc", version = "0.0.9")
13 changes: 13 additions & 0 deletions modules/glm/1.0.0/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- BUILD.bazel
+++ BUILD.bazel
@@ -0,0 +1,10 @@
+cc_library(
+ name = "glm",
+ hdrs = glob([
+ "glm/**/*.h",
+ "glm/**/*.hpp",
+ ]),
+ includes = ["."],
+ textual_hdrs = glob(["glm/**/*.inl"]),
+ visibility = ["//visibility:public"],
+)
9 changes: 9 additions & 0 deletions modules/glm/1.0.0/patches/add_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 = "glm",
+ version = "1.0.0",
+)
+
+bazel_dep(name = "rules_cc", version = "0.0.9")
13 changes: 13 additions & 0 deletions modules/glm/1.0.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
bazel: [6.x, 7.x]
platform:
- ubuntu2204
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@glm//:glm'
10 changes: 10 additions & 0 deletions modules/glm/1.0.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-v9J7ozkm+9s0FUW3ng68gQ97XlWT+bD+RQzqFGKVBzE=",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-Jly6TRWYbakaz6jgvF5tqcIvQ+O6sUrqQOF9bf8QvVM=",
"add_module_dot_bazel.patch": "sha256-RBxafpDq7+oeycuZU8qmg9I0yZKiZlJPl6VBSqsZsq8="
},
"strip_prefix": "glm",
"url": "https://github.com/g-truc/glm/releases/download/1.0.0/glm-1.0.0-light.zip"
}
5 changes: 3 additions & 2 deletions modules/glm/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
},
{
"github": "phaedon",
"name": "Phaedon (Fædon) Sinis"
"name": "Phaedon (F\u00e6don) Sinis"
}
],
"repository": [
"github:g-truc/glm"
],
"versions": [
"0.9.9.8",
"0.9.9.8.bcr.1"
"0.9.9.8.bcr.1",
"1.0.0"
],
"yanked_versions": {}
}

0 comments on commit 7b0a4b2

Please sign in to comment.