blob: 26efdbccd88faffa2522a8bcee09812ee295747d [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
proto_library(
name = "cache_proto",
srcs = ["cache.proto"],
)
java_proto_library(
name = "cache_java_proto",
visibility = ["//visibility:public"],
deps = [":cache_proto"],
)
genrule(
name = "gen_reviewdb_proto",
outs = ["reviewdb.proto"],
cmd = "$(location //java/com/google/gerrit/proto:ProtoGen) -o $@",
tools = ["//java/com/google/gerrit/proto:ProtoGen"],
)
proto_library(
name = "reviewdb_proto",
srcs = [":reviewdb.proto"],
)
java_proto_library(
name = "reviewdb_java_proto",
visibility = [
"//javatests/com/google/gerrit/proto:__pkg__",
"//tools/eclipse:__pkg__",
],
deps = [":reviewdb_proto"],
)