From c7fea3b841ee03a76b658e872647a733c9c9fc01 Mon Sep 17 00:00:00 2001 From: James Sharpe Date: Wed, 3 Jul 2024 23:15:51 +0000 Subject: [PATCH] Publish bazelbuild/rules_foreign_cc@0.11.1 --- modules/rules_foreign_cc/0.11.1/MODULE.bazel | 45 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++ modules/rules_foreign_cc/0.11.1/presubmit.yml | 9 ++++ modules/rules_foreign_cc/0.11.1/source.json | 9 ++++ modules/rules_foreign_cc/metadata.json | 28 +++++++----- 5 files changed, 95 insertions(+), 10 deletions(-) create mode 100644 modules/rules_foreign_cc/0.11.1/MODULE.bazel create mode 100644 modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_foreign_cc/0.11.1/presubmit.yml create mode 100644 modules/rules_foreign_cc/0.11.1/source.json diff --git a/modules/rules_foreign_cc/0.11.1/MODULE.bazel b/modules/rules_foreign_cc/0.11.1/MODULE.bazel new file mode 100644 index 00000000000..680bd52158f --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/MODULE.bazel @@ -0,0 +1,45 @@ +"bazelbuild/rules_foreign_cc" + +module( + name = "rules_foreign_cc", + version = "0.11.1", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "platforms", version = "0.0.5") +bazel_dep(name = "rules_python", version = "0.23.1") + +# Dev dependencies +bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True) + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +python.toolchain(python_version = "3.9") +use_repo(python, "python_3_9") + +tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools") +use_repo( + tools, + "cmake_3.23.2_toolchains", + "cmake_src", + "gettext_runtime", + "glib_dev", + "glib_src", + "gnumake_src", + "meson_src", + "ninja_1.12.0_toolchains", + "ninja_build_src", + "pkgconfig_src", + "rules_foreign_cc_framework_toolchains", +) + +register_toolchains( + "@rules_foreign_cc_framework_toolchains//:all", + "@cmake_3.23.2_toolchains//:all", + "@ninja_1.12.0_toolchains//:all", + "@python_3_9//:all", + "@rules_foreign_cc//toolchains:all", +) diff --git a/modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch b/modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..03227c6c848 --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "bazelbuild/rules_foreign_cc" + + module( + name = "rules_foreign_cc", +- version = "0.0.0", ++ version = "0.11.1", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.3.0") diff --git a/modules/rules_foreign_cc/0.11.1/presubmit.yml b/modules/rules_foreign_cc/0.11.1/presubmit.yml new file mode 100644 index 00000000000..66b8d34107b --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/presubmit.yml @@ -0,0 +1,9 @@ +matrix: + platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + build_targets: + - "@rules_foreign_cc//toolchains:make_tool" diff --git a/modules/rules_foreign_cc/0.11.1/source.json b/modules/rules_foreign_cc/0.11.1/source.json new file mode 100644 index 00000000000..0d115f1f3aa --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-SzPWLPEJvMzyhrMO1xIRKcw0z09O2dihHzjZEI9AunQ=", + "strip_prefix": "rules_foreign_cc-0.11.1", + "url": "https://github.com/bazelbuild/rules_foreign_cc/releases/download/0.11.1/rules_foreign_cc-0.11.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-s2c0wbt8rD0JkCgTVu3Z6N89kFOElUETStlgjf3Pcsc=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_foreign_cc/metadata.json b/modules/rules_foreign_cc/metadata.json index 7708da627c7..f7d0390c7ea 100644 --- a/modules/rules_foreign_cc/metadata.json +++ b/modules/rules_foreign_cc/metadata.json @@ -1,12 +1,20 @@ { - "homepage": "https://bazelbuild.github.io/rules_foreign_cc", - "maintainers": [ - { - "github": "jsharpe", - "name": "James Sharpe" - } - ], - "repository": ["github:bazelbuild/rules_foreign_cc"], - "versions": ["0.8.0", "0.9.0", "0.10.1"], - "yanked_versions": {} + "homepage": "https://github.com/bazel-contrib/rules_foreign_cc", + "maintainers": [ + { + "email": "james.sharpe@zenotech.com", + "github": "jsharpe", + "name": "James Sharpe" + } + ], + "repository": [ + "github:bazelbuild/rules_foreign_cc" + ], + "versions": [ + "0.8.0", + "0.9.0", + "0.10.1", + "0.11.1" + ], + "yanked_versions": {} }