2021-01-22 14:25:49 +00:00
|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
|
|
|
|
2019-01-08 11:25:16 +00:00
|
|
|
toolchain_type(
|
|
|
|
name = "cmake_toolchain",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
toolchain_type(
|
|
|
|
name = "ninja_toolchain",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2020-09-07 08:48:26 +00:00
|
|
|
toolchain_type(
|
|
|
|
name = "make_toolchain",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2019-01-08 11:25:16 +00:00
|
|
|
# Preinstalled cmake will always be the default, if toolchain with more exact constraints
|
|
|
|
# is not defined before; registered from workspace_definitions.bzl#rules_foreign_cc_dependencies
|
|
|
|
toolchain(
|
|
|
|
name = "preinstalled_cmake_toolchain",
|
|
|
|
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:preinstalled_cmake",
|
|
|
|
toolchain_type = "@rules_foreign_cc//tools/build_defs:cmake_toolchain",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Preinstalled ninja will always be the default, if toolchain with more exact constraints
|
|
|
|
# is not defined before; registered from workspace_definitions.bzl#rules_foreign_cc_dependencies
|
|
|
|
toolchain(
|
|
|
|
name = "preinstalled_ninja_toolchain",
|
|
|
|
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:preinstalled_ninja",
|
|
|
|
toolchain_type = "@rules_foreign_cc//tools/build_defs:ninja_toolchain",
|
2018-08-13 12:30:15 +00:00
|
|
|
)
|
2020-09-07 08:48:26 +00:00
|
|
|
|
|
|
|
# Preinstalled make will always be the default, if toolchain with more exact constraints
|
|
|
|
# is not defined before; registered from workspace_definitions.bzl#rules_foreign_cc_dependencies
|
|
|
|
toolchain(
|
|
|
|
name = "preinstalled_make_toolchain",
|
|
|
|
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:preinstalled_make",
|
|
|
|
toolchain_type = "@rules_foreign_cc//tools/build_defs:make_toolchain",
|
|
|
|
)
|
2021-01-22 14:25:49 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "bzl_srcs",
|
|
|
|
srcs = glob(["**/*.bzl"]) + [
|
|
|
|
"@rules_foreign_cc_bazel_version//:def.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//tools/build_defs/native_tools:bzl_srcs",
|
|
|
|
"//tools/build_defs/shell_toolchain/polymorphism:bzl_srcs",
|
|
|
|
"//tools/build_defs/shell_toolchain/toolchains:bzl_srcs",
|
|
|
|
"@bazel_skylib//lib:collections",
|
|
|
|
"@bazel_skylib//lib:versions",
|
|
|
|
],
|
|
|
|
)
|