Bazel Support

Installation

There is a bazel wrapper script in the scripts directory that can be used to download & run bazel for your host system.

From the workspace root directory, you can run:

./scripts/bazel --version

Usage

You should always be able to build all targets recursively with:

./scripts/bazel build //...

To build all targets in a specific directory (non-recursively), you can run:

./scripts/bazel build //path/to/directory:all

To build a specific target inside a BUILD.bazel file:

./scripts/bazel build //path/to/directory:target

To learn more about building multiple targets, please read the bazel documentation: https://bazel.build/run/build#specifying-build-targets

Support

Keeping track of bazel support here until at feature parity with current cmake build system.

Current Support:

  • Ability to download & run bazel binary from script in repository for linux/mac for x86/aarch64.