aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/remoteapis/BUILD.bazel
blob: 022500a1a16ef655272744ef228552c8b3af26c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package(default_visibility = ["//visibility:public"])

licenses(["notice"])

exports_files(["LICENSE"])

load("@io_bazel//third_party/grpc:build_defs.bzl", "java_grpc_library")
load("@io_bazel//tools/build_rules:utilities.bzl", "java_library_srcs")

filegroup(
    name = "srcs",
    srcs = glob(["**"]),
    visibility = ["//third_party:__pkg__"],
)

JAVA_LIBRARY_PROTOS = [
  "build_bazel_semver_semver",
  "build_bazel_remote_execution_v2_remote_execution",
]

[java_library_srcs(
    name = proto + "_java_proto_srcs",
    deps = [":" + proto + "_java_proto"],
) for proto in JAVA_LIBRARY_PROTOS]

# for bootstrapping
filegroup(
    name = "dist_jars",
    srcs = [":" + proto + "_java_proto_srcs" for proto in JAVA_LIBRARY_PROTOS]
    + [":build_bazel_remote_execution_v2_remote_execution_java_grpc_srcs"],
    visibility = ["@//src:__pkg__"],
)

proto_library(
    name = "build_bazel_remote_execution_v2_remote_execution_proto",
    srcs = ["build/bazel/remote/execution/v2/remote_execution.proto"],
    deps = [
        ":build_bazel_semver_semver_proto",
        "@com_google_protobuf//:duration_proto",
        "@com_google_protobuf//:timestamp_proto",
        "@googleapis//:google_api_annotations_proto",
        "@googleapis//:google_api_http_proto",
        "@googleapis//:google_longrunning_operations_proto",
        "@googleapis//:google_rpc_status_proto",
    ],
)

proto_library(
    name = "build_bazel_semver_semver_proto",
    srcs = ["build/bazel/semver/semver.proto"],
)

java_proto_library(
    name = "build_bazel_remote_execution_v2_remote_execution_java_proto",
    deps = [":build_bazel_remote_execution_v2_remote_execution_proto"],
)

java_proto_library(
    name = "build_bazel_semver_semver_java_proto",
    deps = [":build_bazel_semver_semver_proto"],
)

java_grpc_library(
    name = "build_bazel_remote_execution_v2_remote_execution_java_grpc",
    srcs = [":build_bazel_remote_execution_v2_remote_execution_proto"],
    deps = [
        ":build_bazel_remote_execution_v2_remote_execution_java_proto",
        "@googleapis//:google_longrunning_operations_java_proto",
    ],
)