blob: ed482be9fc9c7754a93743eeb62757f12ec2f37c [file] [log] [blame]
load("@io_bazel//third_party/grpc:build_defs.bzl", "java_grpc_library")
load("@io_bazel//tools/build_rules:utilities.bzl", "java_library_srcs")
load("@protobuf//bazel:proto_library.bzl", "proto_library")
load("@protobuf//bazel:java_proto_library.bzl", "java_proto_library")
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
exports_files([
"LICENSE",
"MODULE.bazel",
])
filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["@io_bazel//third_party:__pkg__"],
)
JAVA_LIBRARY_PROTOS = [
"build_bazel_semver_semver",
"build_bazel_remote_asset_v1_remote_asset",
"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_asset_v1_remote_asset_java_grpc_srcs",
":build_bazel_remote_execution_v2_remote_execution_java_grpc_srcs",
],
visibility = ["@io_bazel//src:__pkg__"],
)
proto_library(
name = "build_bazel_remote_asset_v1_remote_asset_proto",
srcs = ["build/bazel/remote/asset/v1/remote_asset.proto"],
deps = [
":build_bazel_remote_execution_v2_remote_execution_proto",
"@googleapis//google/api:annotations_proto",
"@googleapis//google/rpc:status_proto",
"@protobuf//:duration_proto",
"@protobuf//:timestamp_proto",
],
)
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",
"@googleapis//google/api:annotations_proto",
"@googleapis//google/api:http_proto",
"@googleapis//google/longrunning:operations_proto",
"@googleapis//google/rpc:status_proto",
"@protobuf//:any_proto",
"@protobuf//:duration_proto",
"@protobuf//:timestamp_proto",
"@protobuf//:wrappers_proto",
],
)
proto_library(
name = "build_bazel_semver_semver_proto",
srcs = ["build/bazel/semver/semver.proto"],
)
java_proto_library(
name = "build_bazel_remote_asset_v1_remote_asset_java_proto",
deps = [":build_bazel_remote_asset_v1_remote_asset_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_asset_v1_remote_asset_java_grpc",
srcs = [":build_bazel_remote_asset_v1_remote_asset_proto"],
deps = [":build_bazel_remote_asset_v1_remote_asset_java_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:longrunning_java_proto",
],
)