1# Copyright 2020 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 22# TODO(ohren): Change srcs to use an enumeration of each individual proto 23# instead of *.proto globbing once the build file generator supports 24# subpackages. 25proto_library( 26 name = "errors_proto", 27 srcs = glob(["*.proto"]), 28 deps = [ 29 "//google/ads/googleads/v16/common:common_proto", 30 "//google/ads/googleads/v16/enums:enums_proto", 31 "//google/api:annotations_proto", 32 "@com_google_protobuf//:duration_proto", 33 "@com_google_protobuf//:wrappers_proto", 34 ], 35) 36 37############################################################################## 38# Java 39############################################################################## 40load( 41 "@com_google_googleapis_imports//:imports.bzl", 42 "java_proto_library", 43) 44 45java_proto_library( 46 name = "errors_java_proto", 47 deps = [":errors_proto"], 48) 49 50############################################################################## 51# PHP 52############################################################################## 53 54# PHP targets are in the parent directory's BUILD.bazel file to facilitate 55# aggregating metadata using a single underlying call to protoc. 56 57############################################################################## 58# C# 59############################################################################## 60load( 61 "@com_google_googleapis_imports//:imports.bzl", 62 "csharp_proto_library", 63) 64 65csharp_proto_library( 66 name = "errors_csharp_proto", 67 deps = [":errors_proto"], 68) 69 70############################################################################## 71# Ruby 72############################################################################## 73load( 74 "@com_google_googleapis_imports//:imports.bzl", 75 "ruby_proto_library", 76) 77 78ruby_proto_library( 79 name = "errors_ruby_proto", 80 deps = [":errors_proto"], 81) 82 83############################################################################## 84# Python 85############################################################################## 86load( 87 "@com_google_googleapis_imports//:imports.bzl", 88 "py_proto_library", 89) 90 91py_proto_library( 92 name = "errors_py_proto", 93 deps = [":errors_proto"], 94) 95