blob: 4ba944746a51ca6c4238566a8425d60a37c8b7d2 [file] [log] [blame] [edit]
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
)
bzl_library(
name = "proto_toolchain_bzl",
srcs = [
"proto_toolchain.bzl",
],
deps = [
"//bazel/private:proto_toolchain_rule_bzl",
"//bazel/private:toolchain_helpers_bzl",
],
)
bzl_library(
name = "proto_lang_toolchain_bzl",
srcs = [
"proto_lang_toolchain.bzl",
],
deps = [
"//bazel/common:proto_common_bzl",
"//bazel/private:proto_lang_toolchain_rule_bzl",
"@proto_bazel_features//:features",
],
)
filegroup(
name = "for_bazel_tests",
testonly = True,
srcs = [
"BUILD",
"proto_lang_toolchain_bzl",
"proto_toolchain_bzl",
],
visibility = [
"//bazel:__pkg__",
],
)
# The public API users set
bool_flag(
name = "prefer_prebuilt_protoc",
# TODO: this should be True after the feature is vetted with some adoption
build_setting_default = False,
)
config_setting(
name = "prefer_prebuilt_protoc.flag_set",
flag_values = {":prefer_prebuilt_protoc": "true"},
)
# The public API users set to disable the validation action failing.
bool_flag(
name = "allow_nonstandard_protoc",
build_setting_default = False,
)
config_setting(
name = "allow_nonstandard_protoc.flag_set",
flag_values = {":allow_nonstandard_protoc": "true"},
)