An open API service indexing awesome lists of open source software.

https://github.com/zaucy/rules_vulkan

Vulkan SDK setup for Bazel
https://github.com/zaucy/rules_vulkan

Last synced: 6 months ago
JSON representation

Vulkan SDK setup for Bazel

Awesome Lists containing this project

README

          

# Vulkan SDK with Bazel

## Installation

`rules_vulkan` relies on [`rules_7zip`](https://github.com/zaucy/rules_7zip) for extracting the Vulkan SDK on Windows.

```python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_7zip",
strip_prefix = "rules_7zip-e95ba876db445cf2c925c02c4bc18ed37a503fd8",
url = "https://github.com/zaucy/rules_7zip/archive/e95ba876db445cf2c925c02c4bc18ed37a503fd8.zip",
sha256 = "b66e1c712577b0c029d4c94228dba9c8aacdcdeb88c3b1eeeffd00247ba5a856",
)

load("@rules_7zip//:setup.bzl", "setup_7zip")

setup_7zip()

# Replace with latest repository commit hash
RULES_VULKAN_COMMIT = ""

http_archive(
name = "com_github_zaucy_rules_vulkan",
strip_prefix = "rules_vulkan-{}".format(RULES_VULKAN_COMMIT),
url = "https://github.com/zaucy/rules_vulkan/archive/{}.zip".format(RULES_VULKAN_COMMIT),
)

load("@com_github_zaucy_rules_vulkan//:repo.bzl", "vulkan_repos")

vulkan_repos()
```

## Similar projects

- [jadarve/rules_vulkan](https://github.com/jadarve/rules_vulkan)
- [mxpv/rules_vulkan](https://github.com/mxpv/rules_vulkan/)

## License

This repository is licensed under MIT. Please note that `rules_vulkan` downloads the Vulkan SDK from [LunarG](https://www.lunarg.com/) which has its own licenses and agreements you must adhere to.