2024-11-06 15:35:23 +00:00
|
|
|
"bazel-contrib/rules_foreign_cc"
|
2023-05-06 07:56:00 +00:00
|
|
|
|
|
|
|
module(
|
|
|
|
name = "rules_foreign_cc",
|
|
|
|
version = "0.0.0",
|
|
|
|
compatibility_level = 1,
|
|
|
|
)
|
|
|
|
|
2024-08-13 10:52:54 +00:00
|
|
|
bazel_dep(name = "bazel_features", version = "1.15.0")
|
2024-01-12 22:00:28 +00:00
|
|
|
bazel_dep(name = "bazel_skylib", version = "1.3.0")
|
2023-05-06 07:56:00 +00:00
|
|
|
bazel_dep(name = "platforms", version = "0.0.5")
|
2024-01-12 22:00:28 +00:00
|
|
|
bazel_dep(name = "rules_python", version = "0.23.1")
|
2023-12-21 10:42:09 +00:00
|
|
|
|
2024-01-12 22:00:28 +00:00
|
|
|
# Dev dependencies
|
2023-12-21 10:42:09 +00:00
|
|
|
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")
|
2024-08-28 10:23:04 +00:00
|
|
|
bazel_dep(name = "bazel_ci_rules", version = "1.0.0", dev_dependency = True)
|
|
|
|
|
|
|
|
# note that this dev_dependency is only needed because bazel_ci_rules
|
|
|
|
# depends on it. If you are not using bazel_ci_rules; ideally we'd be able to remove this.
|
2023-12-21 10:42:09 +00:00
|
|
|
bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True)
|
2023-05-06 07:56:00 +00:00
|
|
|
|
2024-01-12 22:00:28 +00:00
|
|
|
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
|
|
|
|
python.toolchain(python_version = "3.9")
|
|
|
|
use_repo(python, "python_3_9")
|
|
|
|
|
2023-05-06 07:56:00 +00:00
|
|
|
tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools")
|
|
|
|
use_repo(
|
|
|
|
tools,
|
|
|
|
"cmake_3.23.2_toolchains",
|
|
|
|
"cmake_src",
|
2023-12-21 10:42:09 +00:00
|
|
|
"gettext_runtime",
|
|
|
|
"glib_dev",
|
|
|
|
"glib_src",
|
2023-05-06 07:56:00 +00:00
|
|
|
"gnumake_src",
|
2023-06-09 10:29:12 +00:00
|
|
|
"meson_src",
|
2024-08-08 09:51:41 +00:00
|
|
|
"ninja_1.12.1_toolchains",
|
2023-05-06 07:56:00 +00:00
|
|
|
"ninja_build_src",
|
|
|
|
"pkgconfig_src",
|
2023-06-28 09:20:01 +00:00
|
|
|
"rules_foreign_cc_framework_toolchains",
|
2023-05-06 07:56:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
register_toolchains(
|
2023-06-28 09:20:01 +00:00
|
|
|
"@rules_foreign_cc_framework_toolchains//:all",
|
2023-05-06 07:56:00 +00:00
|
|
|
"@cmake_3.23.2_toolchains//:all",
|
2024-08-08 09:51:41 +00:00
|
|
|
"@ninja_1.12.1_toolchains//:all",
|
2024-01-12 22:00:28 +00:00
|
|
|
"@python_3_9//:all",
|
|
|
|
"@rules_foreign_cc//toolchains:all",
|
2023-05-06 07:56:00 +00:00
|
|
|
)
|