diff --git a/support/bazel/.bazelversion b/support/bazel/.bazelversion deleted file mode 100644 index 0e791524..00000000 --- a/support/bazel/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -8.1.1 diff --git a/support/bazel/BUILD.bazel b/support/bazel/BUILD.bazel deleted file mode 100644 index ebeac4ba..00000000 --- a/support/bazel/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@rules_cc//cc:defs.bzl", "cc_library") - -cc_library( - name = "fmt", - srcs = [ - #"src/fmt.cc", # No C++ module support, yet in Bazel (https://github.com/bazelbuild/bazel/pull/19940) - "src/format.cc", - "src/os.cc", - ], - hdrs = glob([ - "include/fmt/*.h", - ]), - copts = select({ - "@platforms//os:windows": ["-utf-8"], - "//conditions:default": [], - }), - includes = [ - "include", - ], - strip_include_prefix = "include", - visibility = ["//visibility:public"], -) diff --git a/support/bazel/MODULE.bazel b/support/bazel/MODULE.bazel deleted file mode 100644 index bb249751..00000000 --- a/support/bazel/MODULE.bazel +++ /dev/null @@ -1,7 +0,0 @@ -module( - name = "fmt", - compatibility_level = 10, -) - -bazel_dep(name = "platforms", version = "0.0.11") -bazel_dep(name = "rules_cc", version = "0.1.1") diff --git a/support/bazel/README.md b/support/bazel/README.md deleted file mode 100644 index 795a6288..00000000 --- a/support/bazel/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# Bazel support - -To get [Bazel](https://bazel.build/) 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](https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/fmt) provides support for {fmt}. - -For instance, to use {fmt} add to your `MODULE.bazel` file: - -``` -bazel_dep(name = "fmt", version = "11.1.4") -``` - -### 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", -) -``` diff --git a/support/bazel/WORKSPACE.bazel b/support/bazel/WORKSPACE.bazel deleted file mode 100644 index b1be18f3..00000000 --- a/support/bazel/WORKSPACE.bazel +++ /dev/null @@ -1,2 +0,0 @@ -# WORKSPACE marker file needed by Bazel -