|
| 1 | +"""bazel-contrib/rules_foreign_cc""" |
| 2 | + |
| 3 | +module( |
| 4 | + name = "rules_foreign_cc", |
| 5 | + version = "0.14.0", |
| 6 | + compatibility_level = 1, |
| 7 | +) |
| 8 | + |
| 9 | +bazel_dep(name = "bazel_features", version = "1.21.0") |
| 10 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 11 | +bazel_dep(name = "platforms", version = "0.0.11") |
| 12 | +bazel_dep(name = "rules_cc", version = "0.1.1") |
| 13 | +bazel_dep(name = "rules_python", version = "1.1.0") |
| 14 | +bazel_dep(name = "rules_shell", version = "0.3.0") |
| 15 | + |
| 16 | +# Dev dependencies |
| 17 | +bazel_dep(name = "gazelle", version = "0.41.0", dev_dependency = True, repo_name = "bazel_gazelle") |
| 18 | +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True) |
| 19 | +bazel_dep(name = "bazel_ci_rules", version = "1.0.0", dev_dependency = True) |
| 20 | + |
| 21 | +python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 22 | +python.toolchain(python_version = "3.12") |
| 23 | +use_repo(python, "python_3_12") |
| 24 | + |
| 25 | +tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools") |
| 26 | +use_repo( |
| 27 | + tools, |
| 28 | + "cmake_3.23.2_toolchains", |
| 29 | + "cmake_src", |
| 30 | + "gettext_runtime", |
| 31 | + "glib_dev", |
| 32 | + "glib_src", |
| 33 | + "gnumake_src", |
| 34 | + "meson_src", |
| 35 | + "ninja_1.12.1_toolchains", |
| 36 | + "ninja_build_src", |
| 37 | + "pkgconfig_src", |
| 38 | + "rules_foreign_cc_framework_toolchains", |
| 39 | +) |
| 40 | + |
| 41 | +register_toolchains( |
| 42 | + "@rules_foreign_cc_framework_toolchains//:all", |
| 43 | + "@cmake_3.23.2_toolchains//:all", |
| 44 | + "@ninja_1.12.1_toolchains//:all", |
| 45 | + "@python_3_12//:all", |
| 46 | + "@rules_foreign_cc//toolchains:all", |
| 47 | +) |
0 commit comments