7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-24 18:25:03 +00:00
kicad/thirdparty/fmt/support/bazel
2024-09-21 17:44:10 -04:00
..
.bazelversion Update {fmt} to 11.0.2 2024-09-21 17:44:10 -04:00
BUILD.bazel Update {fmt} to 11.0.2 2024-09-21 17:44:10 -04:00
MODULE.bazel Update {fmt} to 11.0.2 2024-09-21 17:44:10 -04:00
README.md Update {fmt} to 11.0.2 2024-09-21 17:44:10 -04:00
WORKSPACE.bazel Update {fmt} to 11.0.2 2024-09-21 17:44:10 -04:00

Bazel support

To get Bazel working with {fmt} you can copy the files BUILD.bazel, MODULE.bazel, WORKSPACE.bazel, and .bazelversion from this folder (support/bazel) to the root folder of this project. This way {fmt} gets bazelized and can be used with Bazel (e.g. doing a bazel build //... on {fmt}).

Using {fmt} as a dependency

Using Bzlmod

The Bazel Central Registry provides support for {fmt}.

For instance, to use {fmt} add to your MODULE.bazel file:

bazel_dep(name = "fmt", version = "10.2.1")

Live at head

For a live-at-head approach, you can copy the contents of this repository and move the Bazel-related build files to the root folder of this project as described above and make use of local_path_override, e.g.:

local_path_override(
    module_name = "fmt",
    path = "../third_party/fmt",
)