1# Copyright 2022 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15package(default_visibility = ["//visibility:public"]) 16 17############################################################################## 18# Common 19############################################################################## 20load("@rules_proto//proto:defs.bzl", "proto_library") 21 22proto_library( 23 name = "enums_proto", 24 srcs = glob(["*.proto"]), 25 deps = [ 26 ], 27) 28 29############################################################################## 30# Java 31############################################################################## 32load( 33 "@com_google_googleapis_imports//:imports.bzl", 34 "java_grpc_library", 35 "java_proto_library", 36) 37 38java_proto_library( 39 name = "enums_java_proto", 40 deps = [":enums_proto"], 41) 42 43java_grpc_library( 44 name = "enums_java_grpc", 45 srcs = [":enums_proto"], 46 deps = [":enums_java_proto"], 47) 48 49############################################################################## 50# Python 51############################################################################## 52load( 53 "@com_google_googleapis_imports//:imports.bzl", 54 "moved_proto_library", 55 "py_grpc_library", 56 "py_proto_library", 57) 58 59moved_proto_library( 60 name = "enums_moved_proto", 61 srcs = [":enums_proto"], 62 deps = [ 63 ], 64) 65 66py_proto_library( 67 name = "enums_py_proto", 68 deps = [":enums_moved_proto"], 69) 70 71py_grpc_library( 72 name = "enums_py_grpc", 73 srcs = [":enums_moved_proto"], 74 deps = [":enums_py_proto"], 75) 76 77############################################################################## 78# C# 79############################################################################## 80load( 81 "@com_google_googleapis_imports//:imports.bzl", 82 "csharp_grpc_library", 83 "csharp_proto_library", 84) 85 86csharp_proto_library( 87 name = "enums_csharp_proto", 88 deps = [":enums_proto"], 89) 90 91csharp_grpc_library( 92 name = "enums_csharp_grpc", 93 srcs = [":enums_proto"], 94 deps = [":enums_csharp_proto"], 95) 96