|  | # gRPC Bazel BUILD file. | 
|  | # | 
|  | # Copyright 2016 gRPC authors. | 
|  | # | 
|  | # Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | # you may not use this file except in compliance with the License. | 
|  | # You may obtain a copy of the License at | 
|  | # | 
|  | #     http://www.apache.org/licenses/LICENSE-2.0 | 
|  | # | 
|  | # Unless required by applicable law or agreed to in writing, software | 
|  | # distributed under the License is distributed on an "AS IS" BASIS, | 
|  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | # See the License for the specific language governing permissions and | 
|  | # limitations under the License. | 
|  | load("@rules_license//rules:license.bzl", "license") | 
|  |  | 
|  | licenses(["notice"])  # Apache v2 | 
|  |  | 
|  | license( | 
|  | name = "license", | 
|  | package_name = "grpc", | 
|  | license_kinds = [ | 
|  | "@rules_license//licenses/spdx:Apache-2.0", | 
|  | ], | 
|  | license_text = "LICENSE", | 
|  | package_version = "1.48", | 
|  | ) | 
|  |  | 
|  | package( | 
|  | default_applicable_licenses = [":license"], | 
|  | default_visibility = ["//visibility:public"], | 
|  | ) | 
|  |  | 
|  | filegroup( | 
|  | name = "srcs", | 
|  | srcs = glob(["**"]) + [ | 
|  | "//third_party/grpc/bazel:srcs", | 
|  | ], | 
|  | ) | 
|  |  | 
|  | alias( | 
|  | name = "cpp_plugin", | 
|  | actual = select({ | 
|  | "//src/conditions:debian_build": "@debian_bin_deps//:grpc-cpp-plugin", | 
|  | "//conditions:default": "@com_github_grpc_grpc//src/compiler:grpc_cpp_plugin", | 
|  | }), | 
|  | ) | 
|  |  | 
|  | alias( | 
|  | name = "grpc++_codegen_proto", | 
|  | actual = select({ | 
|  | "//src/conditions:debian_build": "@debian_cc_deps//:grpc++_unsecure", | 
|  | "//conditions:default": "@com_github_grpc_grpc//:grpc++_codegen_proto", | 
|  | }), | 
|  | ) | 
|  |  | 
|  | alias( | 
|  | name = "grpc++_unsecure", | 
|  | actual = select({ | 
|  | "//src/conditions:debian_build": "@debian_cc_deps//:grpc++_unsecure", | 
|  | "//conditions:default": "@com_github_grpc_grpc//:grpc++_unsecure", | 
|  | }), | 
|  | ) | 
|  |  | 
|  | filegroup( | 
|  | name = "embedded_tools_srcs", | 
|  | srcs = [ | 
|  | "BUILD.tools", | 
|  | "build_defs.bzl", | 
|  | ], | 
|  | ) |