Bazel build rules for https://github.com/bombela/backward-cpp
Follows a "repos/deps" pattern (in order to help with recursive dependencies). To use:
-
Copy
bazel/repos.bzl
into your repository at3rdparty/bazel-rules-backward-cpp/repos.bzl
and add an emptyBUILD
(orBUILD.bazel
) to3rdparty/bazel-rules-backward-cpp
as well. -
Copy all of the directories from
3rdparty
that you don't already have in your repository's3rdparty
directory. -
Add the following to your
WORKSPACE
(orWORKSPACE.bazel
):
load("//3rdparty/bazel-rules-backward-cpp:repos.bzl", backward_repos="repos")
backward_repos()
load("@com_github_3rdparty_bazel_rules_backward_cpp//bazel:deps.bzl", backward_deps="deps")
backward_deps()
Or ... to simplify others depending on your repository, add the following to your repos.bzl
:
load("//3rdparty/bazel-rules-backward-cpp:repos.bzl", backward_repos="repos")
def repos():
backward_repos()
And the following to your deps.bzl
:
load("@com_github_3rdparty_bazel_rules_backward_cpp//bazel:deps.bzl", backward_deps="deps")
def deps():
backward_deps()
- You can then use
@com_github_backward_cpp//:backward
in your target'sdeps
.