BUILD.bazel 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  9. proto_library(
  10. name = "gaming_proto",
  11. srcs = [
  12. "common.proto",
  13. "game_server_clusters.proto",
  14. "game_server_clusters_service.proto",
  15. "game_server_configs.proto",
  16. "game_server_configs_service.proto",
  17. "game_server_deployments.proto",
  18. "game_server_deployments_service.proto",
  19. "realms.proto",
  20. "realms_service.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. "//google/longrunning:operations_proto",
  28. "@com_google_protobuf//:duration_proto",
  29. "@com_google_protobuf//:field_mask_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "gaming_proto_with_info",
  35. deps = [
  36. ":gaming_proto",
  37. "//google/cloud:common_resources_proto",
  38. ],
  39. )
  40. ##############################################################################
  41. # Java
  42. ##############################################################################
  43. load(
  44. "@com_google_googleapis_imports//:imports.bzl",
  45. "java_gapic_assembly_gradle_pkg",
  46. "java_gapic_library",
  47. "java_gapic_test",
  48. "java_grpc_library",
  49. "java_proto_library",
  50. )
  51. java_proto_library(
  52. name = "gaming_java_proto",
  53. deps = [":gaming_proto"],
  54. )
  55. java_grpc_library(
  56. name = "gaming_java_grpc",
  57. srcs = [":gaming_proto"],
  58. deps = [":gaming_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "gaming_java_gapic",
  62. srcs = [":gaming_proto_with_info"],
  63. grpc_service_config = "gaming_grpc_service_config.json",
  64. test_deps = [
  65. ":gaming_java_grpc",
  66. ],
  67. deps = [
  68. ":gaming_java_proto",
  69. ],
  70. )
  71. java_gapic_test(
  72. name = "gaming_java_gapic_test_suite",
  73. test_classes = [
  74. "com.google.cloud.gaming.v1beta.GameServerClustersServiceClientTest",
  75. "com.google.cloud.gaming.v1beta.GameServerConfigsServiceClientTest",
  76. "com.google.cloud.gaming.v1beta.GameServerDeploymentsServiceClientTest",
  77. "com.google.cloud.gaming.v1beta.RealmsServiceClientTest",
  78. ],
  79. runtime_deps = [":gaming_java_gapic_test"],
  80. )
  81. # Open Source Packages
  82. java_gapic_assembly_gradle_pkg(
  83. name = "google-cloud-gaming-v1beta-java",
  84. deps = [
  85. ":gaming_java_gapic",
  86. ":gaming_java_grpc",
  87. ":gaming_java_proto",
  88. ":gaming_proto",
  89. ],
  90. )
  91. ##############################################################################
  92. # Go
  93. ##############################################################################
  94. load(
  95. "@com_google_googleapis_imports//:imports.bzl",
  96. "go_gapic_assembly_pkg",
  97. "go_gapic_library",
  98. "go_proto_library",
  99. "go_test",
  100. )
  101. go_proto_library(
  102. name = "gaming_go_proto",
  103. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  104. importpath = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta",
  105. protos = [":gaming_proto"],
  106. deps = [
  107. "//google/api:annotations_go_proto",
  108. "//google/longrunning:longrunning_go_proto",
  109. ],
  110. )
  111. go_gapic_library(
  112. name = "gaming_go_gapic",
  113. srcs = [":gaming_proto_with_info"],
  114. grpc_service_config = "gaming_grpc_service_config.json",
  115. importpath = "cloud.google.com/go/gaming/apiv1beta;gaming",
  116. service_yaml = "gameservices_v1beta.yaml",
  117. deps = [
  118. ":gaming_go_proto",
  119. "//google/longrunning:longrunning_go_proto",
  120. "@com_google_cloud_go//longrunning:go_default_library",
  121. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  122. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  123. ],
  124. )
  125. go_test(
  126. name = "gaming_go_gapic_test",
  127. srcs = [":gaming_go_gapic_srcjar_test"],
  128. embed = [":gaming_go_gapic"],
  129. importpath = "cloud.google.com/go/gaming/apiv1beta",
  130. )
  131. # Open Source Packages
  132. go_gapic_assembly_pkg(
  133. name = "gapi-cloud-gaming-v1beta-go",
  134. deps = [
  135. ":gaming_go_gapic",
  136. ":gaming_go_gapic_srcjar-test.srcjar",
  137. ":gaming_go_proto",
  138. ],
  139. )
  140. ##############################################################################
  141. # Python
  142. ##############################################################################
  143. load(
  144. "@com_google_googleapis_imports//:imports.bzl",
  145. "py_gapic_assembly_pkg",
  146. "py_gapic_library",
  147. )
  148. py_gapic_library(
  149. name = "gaming_py_gapic",
  150. srcs = [":gaming_proto"],
  151. grpc_service_config = "gaming_grpc_service_config.json",
  152. )
  153. # Open Source Packages
  154. py_gapic_assembly_pkg(
  155. name = "gaming-v1beta-py",
  156. deps = [
  157. ":gaming_py_gapic",
  158. ],
  159. )
  160. ##############################################################################
  161. # PHP
  162. ##############################################################################
  163. load(
  164. "@com_google_googleapis_imports//:imports.bzl",
  165. "php_gapic_assembly_pkg",
  166. "php_gapic_library",
  167. "php_grpc_library",
  168. "php_proto_library",
  169. )
  170. php_proto_library(
  171. name = "gaming_php_proto",
  172. deps = [":gaming_proto"],
  173. )
  174. php_grpc_library(
  175. name = "gaming_php_grpc",
  176. srcs = [":gaming_proto"],
  177. deps = [":gaming_php_proto"],
  178. )
  179. php_gapic_library(
  180. name = "gaming_php_gapic",
  181. srcs = [":gaming_proto_with_info"],
  182. grpc_service_config = "gaming_grpc_service_config.json",
  183. deps = [
  184. ":gaming_php_grpc",
  185. ":gaming_php_proto",
  186. ],
  187. )
  188. # Open Source Packages
  189. php_gapic_assembly_pkg(
  190. name = "google-cloud-gaming-v1beta-php",
  191. deps = [
  192. ":gaming_php_gapic",
  193. ":gaming_php_grpc",
  194. ":gaming_php_proto",
  195. ],
  196. )
  197. ##############################################################################
  198. # Node.js
  199. ##############################################################################
  200. load(
  201. "@com_google_googleapis_imports//:imports.bzl",
  202. "nodejs_gapic_assembly_pkg",
  203. "nodejs_gapic_library",
  204. )
  205. nodejs_gapic_library(
  206. name = "gaming_nodejs_gapic",
  207. package_name = "@google-cloud/game-servers",
  208. src = ":gaming_proto_with_info",
  209. extra_protoc_parameters = ["metadata"],
  210. grpc_service_config = "gaming_grpc_service_config.json",
  211. package = "google.cloud.gaming.v1beta",
  212. service_yaml = "gameservices_v1beta.yaml",
  213. deps = [],
  214. )
  215. nodejs_gapic_assembly_pkg(
  216. name = "gaming-v1beta-nodejs",
  217. deps = [
  218. ":gaming_nodejs_gapic",
  219. ":gaming_proto",
  220. ],
  221. )
  222. ##############################################################################
  223. # Ruby
  224. ##############################################################################
  225. load(
  226. "@com_google_googleapis_imports//:imports.bzl",
  227. "ruby_gapic_assembly_pkg",
  228. "ruby_cloud_gapic_library",
  229. "ruby_grpc_library",
  230. "ruby_proto_library",
  231. )
  232. ruby_proto_library(
  233. name = "gaming_ruby_proto",
  234. deps = [":gaming_proto"],
  235. )
  236. ruby_grpc_library(
  237. name = "gaming_ruby_grpc",
  238. srcs = [":gaming_proto"],
  239. deps = [":gaming_ruby_proto"],
  240. )
  241. ruby_cloud_gapic_library(
  242. name = "gaming_ruby_gapic",
  243. srcs = [":gaming_proto_with_info",],
  244. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-gaming-v1beta"],
  245. deps = [
  246. ":gaming_ruby_grpc",
  247. ":gaming_ruby_proto",
  248. ],
  249. )
  250. # Open Source Packages
  251. ruby_gapic_assembly_pkg(
  252. name = "google-cloud-gaming-v1beta-ruby",
  253. deps = [
  254. ":gaming_ruby_gapic",
  255. ":gaming_ruby_grpc",
  256. ":gaming_ruby_proto",
  257. ],
  258. )
  259. ##############################################################################
  260. # C#
  261. ##############################################################################
  262. load(
  263. "@com_google_googleapis_imports//:imports.bzl",
  264. "csharp_gapic_assembly_pkg",
  265. "csharp_gapic_library",
  266. "csharp_grpc_library",
  267. "csharp_proto_library",
  268. )
  269. csharp_proto_library(
  270. name = "gaming_csharp_proto",
  271. deps = [":gaming_proto"],
  272. )
  273. csharp_grpc_library(
  274. name = "gaming_csharp_grpc",
  275. srcs = [":gaming_proto"],
  276. deps = [":gaming_csharp_proto"],
  277. )
  278. csharp_gapic_library(
  279. name = "gaming_csharp_gapic",
  280. srcs = [":gaming_proto_with_info"],
  281. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  282. grpc_service_config = "gaming_grpc_service_config.json",
  283. deps = [
  284. ":gaming_csharp_grpc",
  285. ":gaming_csharp_proto",
  286. ],
  287. )
  288. # Open Source Packages
  289. csharp_gapic_assembly_pkg(
  290. name = "google-cloud-gaming-v1beta-csharp",
  291. deps = [
  292. ":gaming_csharp_gapic",
  293. ":gaming_csharp_grpc",
  294. ":gaming_csharp_proto",
  295. ],
  296. )
  297. ##############################################################################
  298. # C++
  299. ##############################################################################
  300. # Put your C++ rules here