Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
4 years ago
|
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
|
||
|
load("@rules_java//java:defs.bzl", "java_proto_library")
|
||
3 years ago
|
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
|
||
4 years ago
|
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||
|
|
||
|
filegroup(
|
||
|
name = "datasets",
|
||
|
srcs = [
|
||
|
"dataset.google_message2.pb",
|
||
|
],
|
||
|
visibility = [
|
||
|
"//benchmarks/datasets:__pkg__",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
proto_library(
|
||
|
name = "benchmark_message2_proto",
|
||
|
srcs = [
|
||
|
"benchmark_message2.proto",
|
||
|
],
|
||
|
strip_import_prefix = "/benchmarks",
|
||
|
visibility = [
|
||
|
"//benchmarks/datasets:__pkg__",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
cc_proto_library(
|
||
|
name = "benchmark_message2_cc_proto",
|
||
|
visibility = [
|
||
|
"//benchmarks/datasets:__pkg__",
|
||
|
],
|
||
|
deps = [
|
||
|
"benchmark_message2_proto",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
java_proto_library(
|
||
|
name = "benchmark_message2_java_proto",
|
||
|
visibility = [
|
||
|
"//benchmarks/datasets:__pkg__",
|
||
|
],
|
||
|
deps = [
|
||
|
"benchmark_message2_proto",
|
||
|
],
|
||
|
)
|
||
3 years ago
|
|
||
|
pkg_files(
|
||
|
name = "dist_files",
|
||
|
srcs = glob(["*.proto"]),
|
||
|
strip_prefix = strip_prefix.from_root(""),
|
||
|
visibility = ["//benchmarks:__pkg__"],
|
||
|
)
|