Jakob Buchgraber | 159c1e3 | 2017-06-08 21:57:46 +0200 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 3 | licenses(["notice"]) |
| 4 | |
| 5 | exports_files(["LICENSE"]) |
| 6 | |
Dmitry Lomov | f234f7721 | 2018-01-23 18:28:06 +0100 | [diff] [blame^] | 7 | load("@//third_party/grpc:build_defs.bzl", "java_grpc_library") |
| 8 | load("@//tools/build_rules:utilities.bzl", "java_library_srcs") |
Jakob Buchgraber | 2add6be | 2017-06-07 15:34:39 +0200 | [diff] [blame] | 9 | |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 10 | filegroup( |
| 11 | name = "srcs", |
| 12 | srcs = glob(["**"]), |
| 13 | visibility = ["//third_party:__pkg__"], |
| 14 | ) |
| 15 | |
Jakob Buchgraber | 159c1e3 | 2017-06-08 21:57:46 +0200 | [diff] [blame] | 16 | JAVA_LIBRARY_PROTOS = [ |
| 17 | "google_api_auth", |
| 18 | "google_api_http", |
| 19 | "google_api_annotations", |
| 20 | "google_watch_v1", |
| 21 | "google_rpc_status", |
| 22 | "google_rpc_error_details", |
| 23 | "google_rpc_code", |
| 24 | "google_longrunning_operations", |
| 25 | "google_devtools_remoteexecution_v1test_remote_execution", |
| 26 | "google_devtools_build_v1_publish_build_event", |
| 27 | "google_bytestream_bytestream", |
| 28 | "google_devtools_build_v1_build_status", |
| 29 | "google_devtools_build_v1_build_events", |
| 30 | ] |
| 31 | |
| 32 | [java_library_srcs( |
| 33 | name = proto + "_java_proto_srcs", |
| 34 | deps = [":" + proto + "_java_proto"], |
| 35 | ) for proto in JAVA_LIBRARY_PROTOS] |
| 36 | |
| 37 | # for bootstrapping |
| 38 | filegroup( |
| 39 | name = "dist_jars", |
| 40 | srcs = [":" + proto + "_java_proto_srcs" for proto in JAVA_LIBRARY_PROTOS] |
| 41 | + [ |
| 42 | ":google_devtools_build_v1_publish_build_event_java_grpc_srcs", |
| 43 | ":google_bytestream_bytestream_java_grpc_srcs", |
| 44 | ":google_devtools_remoteexecution_v1test_remote_execution_java_grpc_srcs", |
| 45 | ":google_watch_v1_java_grpc_srcs", |
| 46 | ], |
Dmitry Lomov | f234f7721 | 2018-01-23 18:28:06 +0100 | [diff] [blame^] | 47 | visibility = ["@//src:__pkg__"], |
Jakob Buchgraber | 159c1e3 | 2017-06-08 21:57:46 +0200 | [diff] [blame] | 48 | ) |
| 49 | |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 50 | java_proto_library( |
| 51 | name = "google_devtools_build_v1_build_status_java_proto", |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 52 | deps = [":google_devtools_build_v1_build_status_proto"], |
| 53 | ) |
| 54 | |
| 55 | java_proto_library( |
| 56 | name = "google_devtools_build_v1_build_events_java_proto", |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 57 | deps = [":google_devtools_build_v1_build_events_proto"], |
| 58 | ) |
| 59 | |
Jakob Buchgraber | 2add6be | 2017-06-07 15:34:39 +0200 | [diff] [blame] | 60 | java_grpc_library( |
| 61 | name = "google_devtools_build_v1_publish_build_event_java_grpc", |
| 62 | srcs = [":google_devtools_build_v1_publish_build_event_proto"], |
Ola Rozenfeld | ad2d6c9 | 2017-06-07 12:18:19 -0400 | [diff] [blame] | 63 | deps = [":google_devtools_build_v1_publish_build_event_java_proto"], |
Jakob Buchgraber | 2add6be | 2017-06-07 15:34:39 +0200 | [diff] [blame] | 64 | ) |
| 65 | |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 66 | java_proto_library( |
| 67 | name = "google_devtools_build_v1_publish_build_event_java_proto", |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 68 | deps = [":google_devtools_build_v1_publish_build_event_proto"], |
| 69 | ) |
| 70 | |
| 71 | java_proto_library( |
| 72 | name = "google_bytestream_bytestream_java_proto", |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 73 | deps = [":google_bytestream_bytestream_proto"], |
| 74 | ) |
| 75 | |
| 76 | java_proto_library( |
| 77 | name = "google_longrunning_operations_java_proto", |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 78 | deps = [":google_longrunning_operations_proto"], |
| 79 | ) |
| 80 | |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 81 | java_proto_library( |
| 82 | name = "google_watch_v1_java_proto", |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 83 | deps = [":google_watch_v1_proto"], |
| 84 | ) |
| 85 | |
| 86 | java_proto_library( |
| 87 | name = "google_rpc_status_java_proto", |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 88 | deps = [":google_rpc_status_proto"], |
| 89 | ) |
| 90 | |
| 91 | java_proto_library( |
| 92 | name = "google_rpc_error_details_java_proto", |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 93 | deps = [":google_rpc_error_details_proto"], |
| 94 | ) |
| 95 | |
| 96 | java_proto_library( |
| 97 | name = "google_rpc_code_java_proto", |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 98 | deps = [":google_rpc_code_proto"], |
| 99 | ) |
| 100 | |
| 101 | java_proto_library( |
| 102 | name = "google_devtools_remoteexecution_v1test_remote_execution_java_proto", |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 103 | deps = [":google_devtools_remoteexecution_v1test_remote_execution_proto"], |
| 104 | ) |
| 105 | |
Jakob Buchgraber | 159c1e3 | 2017-06-08 21:57:46 +0200 | [diff] [blame] | 106 | java_proto_library( |
| 107 | name = "google_api_annotations_java_proto", |
| 108 | deps = [":google_api_annotations_proto"], |
| 109 | ) |
| 110 | |
| 111 | java_proto_library( |
| 112 | name = "google_api_http_java_proto", |
| 113 | deps = [":google_api_http_proto"], |
| 114 | ) |
| 115 | |
| 116 | java_proto_library( |
| 117 | name = "google_api_auth_java_proto", |
| 118 | deps = [":google_api_auth_proto"], |
| 119 | ) |
| 120 | |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 121 | java_grpc_library( |
Ola Rozenfeld | ad2d6c9 | 2017-06-07 12:18:19 -0400 | [diff] [blame] | 122 | name = "google_bytestream_bytestream_java_grpc", |
| 123 | srcs = [":google_bytestream_bytestream_proto"], |
Ola Rozenfeld | ad2d6c9 | 2017-06-07 12:18:19 -0400 | [diff] [blame] | 124 | deps = [":google_bytestream_bytestream_java_proto"], |
| 125 | ) |
| 126 | |
| 127 | java_grpc_library( |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 128 | name = "google_watch_v1_java_grpc", |
| 129 | srcs = [":google_watch_v1_proto"], |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 130 | deps = [":google_watch_v1_java_proto"], |
| 131 | ) |
| 132 | |
| 133 | java_grpc_library( |
| 134 | name = "google_devtools_remoteexecution_v1test_remote_execution_java_grpc", |
| 135 | srcs = [":google_devtools_remoteexecution_v1test_remote_execution_proto"], |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 136 | deps = [ |
| 137 | ":google_devtools_remoteexecution_v1test_remote_execution_java_proto", |
| 138 | ":google_longrunning_operations_java_proto", |
| 139 | ], |
| 140 | ) |
| 141 | |
| 142 | proto_library( |
| 143 | name = "google_devtools_remoteexecution_v1test_remote_execution_proto", |
| 144 | srcs = ["google/devtools/remoteexecution/v1test/remote_execution.proto"], |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 145 | deps = [ |
| 146 | ":google_api_annotations_proto", |
| 147 | ":google_longrunning_operations_proto", |
| 148 | ":google_rpc_status_proto", |
| 149 | "@com_google_protobuf//:well_known_types_any_proto", |
| 150 | "@com_google_protobuf//:well_known_types_duration_proto", |
| 151 | ], |
| 152 | ) |
| 153 | |
| 154 | proto_library( |
| 155 | name = "google_rpc_code_proto", |
| 156 | srcs = ["google/rpc/code.proto"], |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 157 | ) |
| 158 | |
| 159 | proto_library( |
| 160 | name = "google_rpc_error_details_proto", |
| 161 | srcs = ["google/rpc/error_details.proto"], |
Jakob Buchgraber | 8242c50 | 2017-06-07 15:43:10 +0200 | [diff] [blame] | 162 | deps = [ |
| 163 | "@com_google_protobuf//:well_known_types_any_proto", |
| 164 | "@com_google_protobuf//:well_known_types_duration_proto", |
| 165 | ], |
| 166 | ) |
| 167 | |
| 168 | proto_library( |
| 169 | name = "google_watch_v1_proto", |
| 170 | srcs = ["google/watcher/v1/watch.proto"], |
| 171 | deps = [ |
| 172 | ":google_api_annotations_proto", |
| 173 | "@com_google_protobuf//:well_known_types_any_proto", |
| 174 | "@com_google_protobuf//:well_known_types_empty_proto", |
| 175 | ], |
| 176 | ) |
| 177 | |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 178 | proto_library( |
| 179 | name = "google_bytestream_bytestream_proto", |
| 180 | srcs = ["google/bytestream/bytestream.proto"], |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 181 | deps = [ |
| 182 | ":google_api_annotations_proto", |
| 183 | "@com_google_protobuf//:well_known_types_wrappers_proto", |
| 184 | ], |
| 185 | ) |
| 186 | |
| 187 | proto_library( |
| 188 | name = "google_longrunning_operations_proto", |
| 189 | srcs = ["google/longrunning/operations.proto"], |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 190 | deps = [ |
| 191 | ":google_api_annotations_proto", |
| 192 | ":google_api_http_proto", |
| 193 | ":google_rpc_status_proto", |
| 194 | "@com_google_protobuf//:well_known_types_any_proto", |
| 195 | "@com_google_protobuf//:well_known_types_empty_proto", |
| 196 | ], |
| 197 | ) |
| 198 | |
| 199 | proto_library( |
| 200 | name = "google_devtools_build_v1_build_status_proto", |
| 201 | srcs = ["google/devtools/build/v1/build_status.proto"], |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 202 | deps = [ |
| 203 | ":google_api_annotations_proto", |
| 204 | "@com_google_protobuf//:well_known_types_any_proto", |
| 205 | ], |
| 206 | ) |
| 207 | |
| 208 | proto_library( |
| 209 | name = "google_devtools_build_v1_build_events_proto", |
| 210 | srcs = ["google/devtools/build/v1/build_events.proto"], |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 211 | deps = [ |
| 212 | ":google_api_annotations_proto", |
| 213 | ":google_devtools_build_v1_build_status_proto", |
| 214 | ":google_rpc_status_proto", |
| 215 | "@com_google_protobuf//:well_known_types_any_proto", |
| 216 | "@com_google_protobuf//:well_known_types_timestamp_proto", |
| 217 | "@com_google_protobuf//:well_known_types_wrappers_proto", |
| 218 | ], |
| 219 | ) |
| 220 | |
| 221 | proto_library( |
| 222 | name = "google_devtools_build_v1_publish_build_event_proto", |
| 223 | srcs = ["google/devtools/build/v1/publish_build_event.proto"], |
Jakob Buchgraber | 84a8e95 | 2017-05-30 15:49:37 +0200 | [diff] [blame] | 224 | deps = [ |
| 225 | ":google_api_annotations_proto", |
| 226 | ":google_api_auth_proto", |
| 227 | ":google_devtools_build_v1_build_events_proto", |
| 228 | "@com_google_protobuf//:well_known_types_any_proto", |
| 229 | "@com_google_protobuf//:well_known_types_duration_proto", |
| 230 | "@com_google_protobuf//:well_known_types_empty_proto", |
| 231 | ], |
| 232 | ) |
| 233 | |
| 234 | proto_library( |
| 235 | name = "google_api_annotations_proto", |
| 236 | srcs = ["google/api/annotations.proto"], |
| 237 | deps = [ |
| 238 | ":google_api_http_proto", |
| 239 | "@com_google_protobuf//:well_known_types_descriptor_proto", |
| 240 | ], |
| 241 | ) |
| 242 | |
| 243 | proto_library( |
| 244 | name = "google_api_http_proto", |
| 245 | srcs = ["google/api/http.proto"], |
| 246 | ) |
| 247 | |
| 248 | proto_library( |
| 249 | name = "google_rpc_status_proto", |
| 250 | srcs = ["google/rpc/status.proto"], |
| 251 | deps = ["@com_google_protobuf//:well_known_types_any_proto"], |
| 252 | ) |
| 253 | |
| 254 | proto_library( |
| 255 | name = "google_api_auth_proto", |
| 256 | srcs = ["google/api/auth.proto"], |
| 257 | deps = [":google_api_annotations_proto"], |
| 258 | ) |