BUILD.bazel 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 = "services_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/ads/searchads360/v0/resources:resources_proto",
  26. "//google/api:annotations_proto",
  27. "//google/api:client_proto",
  28. "//google/api:field_behavior_proto",
  29. "//google/api:resource_proto",
  30. "@com_google_protobuf//:field_mask_proto",
  31. ],
  32. )
  33. ##############################################################################
  34. # Java
  35. ##############################################################################
  36. load(
  37. "@com_google_googleapis_imports//:imports.bzl",
  38. "java_grpc_library",
  39. "java_proto_library",
  40. )
  41. java_proto_library(
  42. name = "services_java_proto",
  43. deps = [":services_proto"],
  44. )
  45. java_grpc_library(
  46. name = "services_java_grpc",
  47. srcs = [":services_proto"],
  48. deps = [":services_java_proto"],
  49. )
  50. ##############################################################################
  51. # Python
  52. ##############################################################################
  53. load(
  54. "@com_google_googleapis_imports//:imports.bzl",
  55. "moved_proto_library",
  56. "py_grpc_library",
  57. "py_proto_library",
  58. )
  59. moved_proto_library(
  60. name = "services_moved_proto",
  61. srcs = [":services_proto"],
  62. deps = [
  63. "//google/ads/searchads360/v0/common:common_proto",
  64. "//google/ads/searchads360/v0/enums:enums_proto",
  65. "//google/ads/searchads360/v0/resources:resources_proto",
  66. "//google/api:annotations_proto",
  67. "//google/api:client_proto",
  68. "//google/api:field_behavior_proto",
  69. "//google/api:resource_proto",
  70. "@com_google_protobuf//:field_mask_proto",
  71. ],
  72. )
  73. py_proto_library(
  74. name = "services_py_proto",
  75. deps = [":services_moved_proto"],
  76. )
  77. py_grpc_library(
  78. name = "services_py_grpc",
  79. srcs = [":services_moved_proto"],
  80. deps = [":services_py_proto"],
  81. )
  82. ##############################################################################
  83. # C#
  84. ##############################################################################
  85. load(
  86. "@com_google_googleapis_imports//:imports.bzl",
  87. "csharp_grpc_library",
  88. "csharp_proto_library",
  89. )
  90. csharp_proto_library(
  91. name = "services_csharp_proto",
  92. deps = [":services_proto"],
  93. )
  94. csharp_grpc_library(
  95. name = "services_csharp_grpc",
  96. srcs = [":services_proto"],
  97. deps = [":services_csharp_proto"],
  98. )