Bazel support (#3406)

* Bazel support: Remove not needed .bazelrc file

* Bump tested Bazel version

* Apply buildifier to format Bazel build files

* Add note about Bzlmod
This commit is contained in:
Vertexwahn 2023-04-29 16:45:49 +02:00 committed by GitHub
parent f8c9fabd94
commit 5bcf0d7f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View File

@ -1 +0,0 @@
build --symlink_prefix=/ # Out of source build

View File

@ -1 +1 @@
5.1.1 6.1.2

View File

@ -11,8 +11,8 @@ cc_library(
"include/fmt/color.h", "include/fmt/color.h",
"include/fmt/compile.h", "include/fmt/compile.h",
"include/fmt/core.h", "include/fmt/core.h",
"include/fmt/format-inl.h",
"include/fmt/format.h", "include/fmt/format.h",
"include/fmt/format-inl.h",
"include/fmt/os.h", "include/fmt/os.h",
"include/fmt/ostream.h", "include/fmt/ostream.h",
"include/fmt/printf.h", "include/fmt/printf.h",
@ -21,7 +21,7 @@ cc_library(
"include/fmt/xchar.h", "include/fmt/xchar.h",
], ],
includes = [ includes = [
"include", "include",
], ],
strip_include_prefix = "include", strip_include_prefix = "include",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],

View File

@ -71,3 +71,6 @@ The *BUILD* file defines a binary named `Demo` that has a dependency to {fmt}.
To execute the binary you can run `bazel run //:Demo`. To execute the binary you can run `bazel run //:Demo`.
# Using Bzlmod
The [Bazel Central Registry](https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/fmt) also provides support for {fmt}.