|
| 1 | +package(default_visibility = ["//visibility:public"]) |
| 2 | + |
| 3 | +############################################################################## |
| 4 | +# Common |
| 5 | +############################################################################## |
| 6 | +load("@rules_proto//proto:defs.bzl", "proto_library") |
| 7 | +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") |
| 8 | + |
| 9 | +proto_library( |
| 10 | + name = "common_proto", |
| 11 | + srcs = [ |
| 12 | + "operation_metadata.proto", |
| 13 | + ], |
| 14 | + deps = [ |
| 15 | + "//google/api:field_behavior_proto", |
| 16 | + "@com_google_protobuf//:timestamp_proto", |
| 17 | + ], |
| 18 | +) |
| 19 | + |
| 20 | +proto_library_with_info( |
| 21 | + name = "common_proto_with_info", |
| 22 | + deps = [ |
| 23 | + ":common_proto", |
| 24 | + "//google/cloud:common_resources_proto", |
| 25 | + ], |
| 26 | +) |
| 27 | + |
| 28 | +############################################################################## |
| 29 | +# Java |
| 30 | +############################################################################## |
| 31 | +load( |
| 32 | + "@com_google_googleapis_imports//:imports.bzl", |
| 33 | + "java_grpc_library", |
| 34 | + "java_proto_library", |
| 35 | +) |
| 36 | + |
| 37 | +java_proto_library( |
| 38 | + name = "common_java_proto", |
| 39 | + deps = [":common_proto"], |
| 40 | +) |
| 41 | + |
| 42 | +java_grpc_library( |
| 43 | + name = "common_java_grpc", |
| 44 | + srcs = [":common_proto"], |
| 45 | + deps = [":common_java_proto"], |
| 46 | +) |
| 47 | + |
| 48 | +############################################################################## |
| 49 | +# Go |
| 50 | +############################################################################## |
| 51 | +load( |
| 52 | + "@com_google_googleapis_imports//:imports.bzl", |
| 53 | + "go_proto_library", |
| 54 | +) |
| 55 | + |
| 56 | +go_proto_library( |
| 57 | + name = "common_go_proto", |
| 58 | + compilers = ["@io_bazel_rules_go//proto:go_grpc"], |
| 59 | + importpath = "google.golang.org/genproto/googleapis/cloud/common", |
| 60 | + protos = [":common_proto"], |
| 61 | + deps = [ |
| 62 | + "//google/api:annotations_go_proto", |
| 63 | + ], |
| 64 | +) |
| 65 | + |
| 66 | + |
| 67 | +############################################################################## |
| 68 | +# PHP |
| 69 | +############################################################################## |
| 70 | +load( |
| 71 | + "@com_google_googleapis_imports//:imports.bzl", |
| 72 | + "php_grpc_library", |
| 73 | + "php_proto_library", |
| 74 | +) |
| 75 | + |
| 76 | +php_proto_library( |
| 77 | + name = "common_php_proto", |
| 78 | + deps = [":common_proto"], |
| 79 | +) |
| 80 | + |
| 81 | +php_grpc_library( |
| 82 | + name = "common_php_grpc", |
| 83 | + srcs = [":common_proto"], |
| 84 | + deps = [":common_php_proto"], |
| 85 | +) |
| 86 | + |
| 87 | +############################################################################## |
| 88 | +# Ruby |
| 89 | +############################################################################## |
| 90 | +load( |
| 91 | + "@com_google_googleapis_imports//:imports.bzl", |
| 92 | + "ruby_grpc_library", |
| 93 | + "ruby_proto_library", |
| 94 | +) |
| 95 | + |
| 96 | +ruby_proto_library( |
| 97 | + name = "common_ruby_proto", |
| 98 | + deps = [":common_proto"], |
| 99 | +) |
| 100 | + |
| 101 | +ruby_grpc_library( |
| 102 | + name = "common_ruby_grpc", |
| 103 | + srcs = [":common_proto"], |
| 104 | + deps = [":common_ruby_proto"], |
| 105 | +) |
| 106 | + |
| 107 | +############################################################################## |
| 108 | +# C# |
| 109 | +############################################################################## |
| 110 | +load( |
| 111 | + "@com_google_googleapis_imports//:imports.bzl", |
| 112 | + "csharp_grpc_library", |
| 113 | + "csharp_proto_library", |
| 114 | +) |
| 115 | + |
| 116 | +csharp_proto_library( |
| 117 | + name = "common_csharp_proto", |
| 118 | + deps = [":common_proto"], |
| 119 | +) |
| 120 | + |
| 121 | +csharp_grpc_library( |
| 122 | + name = "common_csharp_grpc", |
| 123 | + srcs = [":common_proto"], |
| 124 | + deps = [":common_csharp_proto"], |
| 125 | +) |
| 126 | + |
| 127 | +############################################################################## |
| 128 | +# C++ |
| 129 | +############################################################################## |
| 130 | +# Put your C++ rules here |
0 commit comments