To use these rules, add the following to your MODULE.bazel
file:
bazel_dep(name = "stb", version = "0.0.0")
git_override(
module_name = "stb",
remote = "https://github.com/jwmcglynn/rules_stb",
)
Or for older versions of bazel, add the following to your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "stb",
init_submodules = True,
branch = "master",
remote = "https://github.com/jwmcglynn/rules_stb"
)
You can then use the stb
libraries via the @stb
label.
For example you can add @stb//:image
to your deps
to use stb_image
.
git subtree pull --prefix=src src master --squash