BUILD.bazel 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. package(default_visibility = ["//visibility:public"])
  15. ##############################################################################
  16. # Common
  17. ##############################################################################
  18. load("@rules_proto//proto:defs.bzl", "proto_library")
  19. proto_library(
  20. name = "resources_proto",
  21. srcs = glob(["*.proto"]),
  22. deps = [
  23. "//google/ads/searchads360/v0/common:common_proto",
  24. "//google/ads/searchads360/v0/enums:enums_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. ],
  28. )
  29. ##############################################################################
  30. # Java
  31. ##############################################################################
  32. load(
  33. "@com_google_googleapis_imports//:imports.bzl",
  34. "java_grpc_library",
  35. "java_proto_library",
  36. )
  37. java_proto_library(
  38. name = "resources_java_proto",
  39. deps = [":resources_proto"],
  40. )
  41. java_grpc_library(
  42. name = "resources_java_grpc",
  43. srcs = [":resources_proto"],
  44. deps = [":resources_java_proto"],
  45. )
  46. ##############################################################################
  47. # Python
  48. ##############################################################################
  49. load(
  50. "@com_google_googleapis_imports//:imports.bzl",
  51. "moved_proto_library",
  52. "py_grpc_library",
  53. "py_proto_library",
  54. )
  55. moved_proto_library(
  56. name = "resources_moved_proto",
  57. srcs = [":resources_proto"],
  58. deps = [
  59. "//google/ads/searchads360/v0/common:common_proto",
  60. "//google/ads/searchads360/v0/enums:enums_proto",
  61. "//google/api:field_behavior_proto",
  62. "//google/api:resource_proto",
  63. ],
  64. )
  65. py_proto_library(
  66. name = "resources_py_proto",
  67. deps = [":resources_moved_proto"],
  68. )
  69. py_grpc_library(
  70. name = "resources_py_grpc",
  71. srcs = [":resources_moved_proto"],
  72. deps = [":resources_py_proto"],
  73. )
  74. ##############################################################################
  75. # C#
  76. ##############################################################################
  77. load(
  78. "@com_google_googleapis_imports//:imports.bzl",
  79. "csharp_grpc_library",
  80. "csharp_proto_library",
  81. )
  82. csharp_proto_library(
  83. name = "resources_csharp_proto",
  84. deps = [":resources_proto"],
  85. )
  86. csharp_grpc_library(
  87. name = "resources_csharp_grpc",
  88. srcs = [":resources_proto"],
  89. deps = [":resources_csharp_proto"],
  90. )