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 = "resources_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/ads/googleads/v16/errors:errors_proto", 32 "//google/api:annotations_proto", 33 "//google/api:field_behavior_proto", 34 "//google/api:resource_proto", 35 "@com_google_protobuf//:field_mask_proto", 36 "@com_google_protobuf//:wrappers_proto", 37 ], 38) 39 40############################################################################## 41# Java 42############################################################################## 43load( 44 "@com_google_googleapis_imports//:imports.bzl", 45 "java_proto_library", 46) 47 48java_proto_library( 49 name = "resources_java_proto", 50 deps = [":resources_proto"], 51) 52 53############################################################################## 54# PHP 55############################################################################## 56 57# PHP targets are in the parent directory's BUILD.bazel file to facilitate 58# aggregating metadata using a single underlying call to protoc. 59 60############################################################################## 61# C# 62############################################################################## 63load( 64 "@com_google_googleapis_imports//:imports.bzl", 65 "csharp_proto_library", 66) 67 68csharp_proto_library( 69 name = "resources_csharp_proto", 70 deps = [":resources_proto"], 71) 72 73############################################################################## 74# Ruby 75############################################################################## 76load( 77 "@com_google_googleapis_imports//:imports.bzl", 78 "ruby_proto_library", 79) 80 81ruby_proto_library( 82 name = "resources_ruby_proto", 83 deps = [":resources_proto"], 84) 85 86############################################################################## 87# Python 88############################################################################## 89load( 90 "@com_google_googleapis_imports//:imports.bzl", 91 "py_proto_library", 92) 93 94py_proto_library( 95 name = "resources_py_proto", 96 deps = [":resources_proto"], 97) 98