Skip to content

Commit

Permalink
Add glm (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn authored Oct 26, 2023
1 parent a2861fd commit 05a9a12
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/glm/0.9.9.8/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module(
name = "glm",
version = "0.9.9.8"
)

bazel_dep(name = "rules_cc", version = "0.0.9")
13 changes: 13 additions & 0 deletions modules/glm/0.9.9.8/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 = ["glm"],
+ textual_hdrs = glob(["glm/**/*.inl"]),
+ visibility = ["//visibility:public"],
+)
9 changes: 9 additions & 0 deletions modules/glm/0.9.9.8/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 = "0.9.9.8"
+)
+
+bazel_dep(name = "rules_cc", version = "0.0.9")
11 changes: 11 additions & 0 deletions modules/glm/0.9.9.8/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
matrix:
platform:
- ubuntu2204
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@glm//:glm'
10 changes: 10 additions & 0 deletions modules/glm/0.9.9.8/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-N+Kj1i6jMi5DWTw0uuKfV+PiUeqJ9AZ1BslAQ3aa3kw=",
"patch_strip": 0,
"patches": {
"add_build_file.patch": "sha256-c6wpPv/5bjnhxdBBPsl3S7QHTM15zG4v6fW6UFccw+w=",
"add_module_dot_bazel.patch": "sha256-rbKTEBl6yq8Ke7/HHr2GaotHE4WGiLVFO2eOn/XQJsI="
},
"strip_prefix": "glm",
"url": "https://github.com/g-truc/glm/releases/download/0.9.9.8/glm-0.9.9.8.zip"
}
17 changes: 17 additions & 0 deletions modules/glm/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://glm.g-truc.net/",
"maintainers": [
{
"email": "[email protected]",
"github": "Vertexwahn",
"name": "Julian Amann"
}
],
"repository": [
"github:g-truc/glm"
],
"versions": [
"0.9.9.8"
],
"yanked_versions": {}
}

0 comments on commit 05a9a12

Please sign in to comment.