From 21335845a67133e64d010eb3ab1d8f8565188234 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Thu, 26 Dec 2024 09:30:39 +0100 Subject: [PATCH] fmt@11.1.0 (#3490) fmt@11.1.0 --- modules/fmt/11.1.0/MODULE.bazel | 10 +++++++ modules/fmt/11.1.0/overlay/BUILD.bazel | 35 +++++++++++++++++++++++++ modules/fmt/11.1.0/overlay/MODULE.bazel | 1 + modules/fmt/11.1.0/presubmit.yml | 27 +++++++++++++++++++ modules/fmt/11.1.0/source.json | 10 +++++++ modules/fmt/metadata.json | 3 ++- 6 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 modules/fmt/11.1.0/MODULE.bazel create mode 100644 modules/fmt/11.1.0/overlay/BUILD.bazel create mode 120000 modules/fmt/11.1.0/overlay/MODULE.bazel create mode 100644 modules/fmt/11.1.0/presubmit.yml create mode 100644 modules/fmt/11.1.0/source.json diff --git a/modules/fmt/11.1.0/MODULE.bazel b/modules/fmt/11.1.0/MODULE.bazel new file mode 100644 index 00000000000..eb142615887 --- /dev/null +++ b/modules/fmt/11.1.0/MODULE.bazel @@ -0,0 +1,10 @@ +module( + name = "fmt", + version = "11.1.0", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 10, +) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.0.17") +bazel_dep(name = "rules_license", version = "1.0.0") diff --git a/modules/fmt/11.1.0/overlay/BUILD.bazel b/modules/fmt/11.1.0/overlay/BUILD.bazel new file mode 100644 index 00000000000..ef881202b83 --- /dev/null +++ b/modules/fmt/11.1.0/overlay/BUILD.bazel @@ -0,0 +1,35 @@ +load("@rules_cc//cc:cc_library.bzl", "cc_library") +load("@rules_license//rules:license.bzl", "license") + +package( + default_applicable_licenses = [":license"], +) + +exports_files([ + "LICENSE", +]) + +license( + name = "license", + license_kinds = ["@rules_license//licenses/spdx:MIT"], + license_text = "LICENSE", +) + +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", # workaround: only needed on some macOS systems (see https://github.com/bazelbuild/bazel-central-registry/issues/1537) + visibility = ["//visibility:public"], +) diff --git a/modules/fmt/11.1.0/overlay/MODULE.bazel b/modules/fmt/11.1.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/fmt/11.1.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/fmt/11.1.0/presubmit.yml b/modules/fmt/11.1.0/presubmit.yml new file mode 100644 index 00000000000..431d4e80b72 --- /dev/null +++ b/modules/fmt/11.1.0/presubmit.yml @@ -0,0 +1,27 @@ +matrix: + unix_platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - ubuntu2404 + windows_test: + - windows + bazel: [7.x, 8.x, rolling] +tasks: + unix_test: + name: Verify build targets + platform: ${{ unix_platform }} + bazel: ${{ bazel }} + build_targets: + - '@fmt//:fmt' + windows_test: + name: Verify build targets + platform: ${{ windows_test }} + bazel: ${{ bazel }} + build_flags: + - --cxxopt=/utf-8 + build_targets: + - '@fmt//:fmt' diff --git a/modules/fmt/11.1.0/source.json b/modules/fmt/11.1.0/source.json new file mode 100644 index 00000000000..866344f620b --- /dev/null +++ b/modules/fmt/11.1.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/fmtlib/fmt/releases/download/11.1.0/fmt-11.1.0.zip", + "integrity": "sha256-4y1Cxr6N92jXRL8OfU1pxMzc4O2kQpK6UmWt2BdBPxc=", + "strip_prefix": "fmt-11.1.0", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-K/CEiPIuDAmNhCxiE3QrPS4OnPaOUkwpmkZweImxjU8=", + "MODULE.bazel": "sha256-yS1mtrw87hXKERz3Z3QD3hmHer6X4Jklh/ifOCD37vU=" + } +} diff --git a/modules/fmt/metadata.json b/modules/fmt/metadata.json index f4753801ec5..27caa66f1a8 100644 --- a/modules/fmt/metadata.json +++ b/modules/fmt/metadata.json @@ -22,7 +22,8 @@ "11.0.0", "11.0.1", "11.0.2", - "11.0.2.bcr.1" + "11.0.2.bcr.1", + "11.1.0" ], "yanked_versions": {} }