Skip to content

Commit 3902929

Browse files
publish-to-bcr-bot[bot]James Sharpe
andauthored
rules_foreign_cc@0.13.0 (#3348)
Release: https://github.com/bazel-contrib/rules_foreign_cc/releases/tag/0.13.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
1 parent 36eb180 commit 3902929

5 files changed

Lines changed: 88 additions & 2 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
"bazel-contrib/rules_foreign_cc"
2+
3+
module(
4+
name = "rules_foreign_cc",
5+
version = "0.13.0",
6+
compatibility_level = 1,
7+
)
8+
9+
bazel_dep(name = "bazel_features", version = "1.15.0")
10+
bazel_dep(name = "bazel_skylib", version = "1.3.0")
11+
bazel_dep(name = "platforms", version = "0.0.5")
12+
bazel_dep(name = "rules_python", version = "0.23.1")
13+
bazel_dep(name = "rules_shell", version = "0.3.0")
14+
15+
# Dev dependencies
16+
bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True, repo_name = "bazel_gazelle")
17+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True)
18+
bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc")
19+
bazel_dep(name = "bazel_ci_rules", version = "1.0.0", dev_dependency = True)
20+
21+
# note that this dev_dependency is only needed because bazel_ci_rules
22+
# depends on it. If you are not using bazel_ci_rules; ideally we'd be able to remove this.
23+
bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True)
24+
25+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
26+
python.toolchain(python_version = "3.9")
27+
use_repo(python, "python_3_9")
28+
29+
tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools")
30+
use_repo(
31+
tools,
32+
"cmake_3.23.2_toolchains",
33+
"cmake_src",
34+
"gettext_runtime",
35+
"glib_dev",
36+
"glib_src",
37+
"gnumake_src",
38+
"meson_src",
39+
"ninja_1.12.1_toolchains",
40+
"ninja_build_src",
41+
"pkgconfig_src",
42+
"rules_foreign_cc_framework_toolchains",
43+
)
44+
45+
register_toolchains(
46+
"@rules_foreign_cc_framework_toolchains//:all",
47+
"@cmake_3.23.2_toolchains//:all",
48+
"@ninja_1.12.1_toolchains//:all",
49+
"@python_3_9//:all",
50+
"@rules_foreign_cc//toolchains:all",
51+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,9 +1,9 @@
5+
"bazel-contrib/rules_foreign_cc"
6+
7+
module(
8+
name = "rules_foreign_cc",
9+
- version = "0.0.0",
10+
+ version = "0.13.0",
11+
compatibility_level = 1,
12+
)
13+
14+
bazel_dep(name = "bazel_features", version = "1.15.0")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
matrix:
2+
platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"]
3+
bazel: ["6.x", "7.x"]
4+
5+
tasks:
6+
verify_targets:
7+
name: "Verify build targets"
8+
platform: ${{ platform }}
9+
bazel: ${{ bazel }}
10+
build_targets:
11+
- "@rules_foreign_cc//toolchains/private:make_tool"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-jlYF3C0WpCKcuPvjmFFLEFKFU+1PX3c3tmP92S9I4cI=",
3+
"strip_prefix": "rules_foreign_cc-0.13.0",
4+
"url": "https://github.com/bazel-contrib/rules_foreign_cc/releases/download/0.13.0/rules_foreign_cc-0.13.0.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-Tn5xg3TCrqdSIenlAK1OZW5in4WA6TwJGbdT4KIzGas="
7+
},
8+
"patch_strip": 1
9+
}

modules/rules_foreign_cc/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
}
99
],
1010
"repository": [
11-
"github:bazelbuild/rules_foreign_cc"
11+
"github:bazel-contrib/rules_foreign_cc"
1212
],
1313
"versions": [
1414
"0.8.0",
1515
"0.9.0",
1616
"0.10.1",
1717
"0.11.1",
18-
"0.12.0"
18+
"0.12.0",
19+
"0.13.0"
1920
],
2021
"yanked_versions": {}
2122
}

0 commit comments

Comments
 (0)