Skip to content

Commit

Permalink
JRA-X : Add vulkan hpp headers
Browse files Browse the repository at this point in the history
Summary:
Adds vulkan hpp

Test Plan:
functional with bazel build from prject

Smart Commit:
  • Loading branch information
xFile3160 committed Jul 16, 2024
1 parent b4ef9c8 commit 860a8a0
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/vulkan-hpp/1.3.283/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Module vulkan-hpp bzlmod dependency."""

module(
name = "vulkan-hpp",
version = "1.3.283",
compatibility_level = 1,
)
bazel_dep(name = "rules_cc", version = "0.0.1")
# to make sha256 work do this:
# openssl dgst -sha256 -binary <file> | openssl base64 -A | sed 's/^/sha256-/'
14 changes: 14 additions & 0 deletions modules/vulkan-hpp/1.3.283/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,11 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+package(default_visibility = ["//visibility:public"])
+cc_library(
+ name = "vulkan-hpp",
+ hdrs = glob([
+ "vulkan/*.h",
+ "vulkan/*.hpp",
+ ]),
+ includes = ["."],
+ visibility = ["//visibility:public"],
+)
9 changes: 9 additions & 0 deletions modules/vulkan-hpp/1.3.283/patches/add_module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- /dev/null
+++ b/MODULE.bazel
@@ -0,0 +1,6 @@
+module(
+ name = " vulkan-hpp",
+ version = "1.3.283",
+ compatibility_level = 1,
+)
+bazel_dep(name = "rules_cc", version = "0.0.9")
16 changes: 16 additions & 0 deletions modules/vulkan-hpp/1.3.283/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
platforms:
centos7:
build_targets:
- '@vulkan-hpp//:vulkan-hpp'
debian10:
build_targets:
- '@vulkan-hpp//:vulkan-hpp'
macos:
build_targets:
- '@vulkan-hpp//:vulkan-hpp'
ubuntu2004:
build_targets:
- '@vulkan-hpp//:vulkan-hpp'
windows:
build_targets:
- '@vulkan-hpp//:vulkan-hpp'
10 changes: 10 additions & 0 deletions modules/vulkan-hpp/1.3.283/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"integrity": "sha256-GmIw0TqFqTn8zMg7ATu5veKOpS3/T5S+NsYFCMIXIwg=",
"patch_strip": 1,
"patches": {
"add_build_file.patch": "sha256-pCIxbA4sP0by7vtwCA4ObzYyb/Bs5yqmfQUQYtaUrCA=",
"add_module_dot_bazel.patch": "sha256-zZ6XT4hgPHELslHjqFdBsdyJPtFB3+mQajKXmjcy/Rk="
},
"strip_prefix": "Vulkan-Hpp-1.3.283",
"url": "https://github.com/KhronosGroup/Vulkan-Hpp/archive/refs/tags/v1.3.283.tar.gz"
}
9 changes: 9 additions & 0 deletions modules/vulkan-hpp/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Module vulkan-sdk"""

module(
name = "vulkan-hpp",
version = "1.3.283",
compatibility_level = 1,
)

bazel_dep(name = "rules_cc", version = "0.0.9")
1 change: 1 addition & 0 deletions modules/vulkan-hpp/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspace(name = "vulkan-hpp")
11 changes: 11 additions & 0 deletions modules/vulkan-hpp/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"homepage": "https://github.com/KhronosGroup/Vulkan-Hpp",
"maintainers": [],
"repository": [
"github:KhronosGroup/Vulkan-Hpp"
],
"versions": [
"1.3.283"
],
"yanked_versions": {}
}

0 comments on commit 860a8a0

Please sign in to comment.