BUILD.bazel 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. package(default_visibility = ["//visibility:public"])
  15. ##############################################################################
  16. # Common
  17. ##############################################################################
  18. load("@rules_proto//proto:defs.bzl", "proto_library")
  19. # TODO(ohren): Change srcs to use an enumeration of each individual proto
  20. # instead of *.proto globbing once the build file generator supports
  21. # subpackages.
  22. proto_library(
  23. name = "resources_proto",
  24. srcs = glob(["*.proto"]),
  25. deps = [
  26. "//google/ads/googleads/v12/common:common_proto",
  27. "//google/ads/googleads/v12/enums:enums_proto",
  28. "//google/ads/googleads/v12/errors:errors_proto",
  29. "//google/api:annotations_proto",
  30. "//google/api:field_behavior_proto",
  31. "//google/api:resource_proto",
  32. "@com_google_protobuf//:field_mask_proto",
  33. "@com_google_protobuf//:wrappers_proto",
  34. ],
  35. )
  36. ##############################################################################
  37. # Java
  38. ##############################################################################
  39. load(
  40. "@com_google_googleapis_imports//:imports.bzl",
  41. "java_proto_library",
  42. )
  43. java_proto_library(
  44. name = "resources_java_proto",
  45. deps = [":resources_proto"],
  46. )
  47. ##############################################################################
  48. # PHP
  49. ##############################################################################
  50. # PHP targets are in the parent directory's BUILD.bazel file to facilitate
  51. # aggregating metadata using a single underlying call to protoc.
  52. ##############################################################################
  53. # C#
  54. ##############################################################################
  55. load(
  56. "@com_google_googleapis_imports//:imports.bzl",
  57. "csharp_proto_library",
  58. )
  59. csharp_proto_library(
  60. name = "resources_csharp_proto",
  61. deps = [":resources_proto"],
  62. )
  63. ##############################################################################
  64. # Ruby
  65. ##############################################################################
  66. load(
  67. "@com_google_googleapis_imports//:imports.bzl",
  68. "ruby_proto_library",
  69. )
  70. ruby_proto_library(
  71. name = "resources_ruby_proto",
  72. deps = [":resources_proto"],
  73. )
  74. ##############################################################################
  75. # Python
  76. ##############################################################################
  77. load(
  78. "@com_google_googleapis_imports//:imports.bzl",
  79. "py_proto_library",
  80. )
  81. py_proto_library(
  82. name = "resources_py_proto",
  83. deps = [":resources_proto"],
  84. )