|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
|
|
|
load("//bazel/private:native_bool_flag.bzl", "native_bool_flag")
|
|
|
|
|
|
|
|
package(default_applicable_licenses = ["//:license"])
|
|
|
|
|
|
|
|
toolchain_type(
|
|
|
|
name = "proto_toolchain_type",
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "upb_proto_library_internal_bzl",
|
|
|
|
srcs = [
|
|
|
|
"upb_proto_library_internal/aspect.bzl",
|
|
|
|
"upb_proto_library_internal/cc_library_func.bzl",
|
|
|
|
"upb_proto_library_internal/copts.bzl",
|
|
|
|
"upb_proto_library_internal/rule.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//bazel:__pkg__"],
|
|
|
|
deps = [
|
|
|
|
"//bazel/common:proto_common_bzl",
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
"@bazel_tools//tools/cpp:toolchain_utils.bzl",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "native_bzl",
|
|
|
|
srcs = [
|
|
|
|
"native.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "bazel_proto_library_rule_bzl",
|
|
|
|
srcs = [
|
|
|
|
"bazel_proto_library_rule.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//bazel/common:proto_common_bzl",
|
|
|
|
"//bazel/common:proto_info_bzl",
|
|
|
|
"//bazel/private:toolchain_helpers_bzl",
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
"@bazel_skylib//rules:common_settings",
|
|
|
|
"@proto_bazel_features//:features",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "proto_toolchain_rule_bzl",
|
|
|
|
srcs = [
|
|
|
|
"proto_toolchain_rule.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//bazel/common:proto_common_bzl",
|
|
|
|
"//bazel/common:proto_lang_toolchain_info_bzl",
|
|
|
|
"//bazel/private:toolchain_helpers_bzl",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "proto_lang_toolchain_rule_bzl",
|
|
|
|
srcs = [
|
|
|
|
"proto_lang_toolchain_rule.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":toolchain_helpers_bzl",
|
|
|
|
"//bazel/common:proto_common_bzl",
|
|
|
|
"//bazel/common:proto_info_bzl",
|
|
|
|
"//bazel/common:proto_lang_toolchain_info_bzl",
|
|
|
|
"@proto_bazel_features//:features",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "toolchain_helpers_bzl",
|
|
|
|
srcs = [
|
|
|
|
"toolchain_helpers.bzl",
|
|
|
|
],
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":native_bzl",
|
|
|
|
"//bazel/common:proto_lang_toolchain_info_bzl",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
native_bool_flag(
|
|
|
|
name = "experimental_proto_descriptor_sets_include_source_info",
|
|
|
|
flag = "experimental_proto_descriptor_sets_include_source_info",
|
|
|
|
match_value = "true",
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
native_bool_flag(
|
|
|
|
name = "strict_proto_deps",
|
|
|
|
flag = "strict_proto_deps",
|
|
|
|
match_value = "off",
|
|
|
|
result = False,
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
native_bool_flag(
|
|
|
|
name = "strict_public_imports",
|
|
|
|
flag = "strict_public_imports",
|
|
|
|
match_value = "off",
|
|
|
|
result = False,
|
|
|
|
visibility = ["//bazel:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "bazel_osx_p4deps",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
visibility = [
|
|
|
|
"//bazel:__pkg__",
|
|
|
|
],
|
|
|
|
)
|