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.
68 lines
2.4 KiB
68 lines
2.4 KiB
4 years ago
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||
|
load("@rules_java//java:defs.bzl", "java_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 = [
|
||
|
"//benchmarks/datasets/google_message1/proto2:datasets",
|
||
|
"//benchmarks/datasets/google_message1/proto3:datasets",
|
||
|
"//benchmarks/datasets/google_message2:datasets",
|
||
|
"//benchmarks/datasets/google_message3:datasets",
|
||
|
"//benchmarks/datasets/google_message4:datasets",
|
||
|
],
|
||
4 years ago
|
visibility = [
|
||
|
"//benchmarks:__subpackages__",
|
||
|
],
|
||
4 years ago
|
)
|
||
|
|
||
|
proto_library(
|
||
|
name = "protos",
|
||
4 years ago
|
visibility = [
|
||
|
"//benchmarks:__subpackages__",
|
||
|
],
|
||
4 years ago
|
deps = [
|
||
|
"//benchmarks/datasets/google_message1/proto2:benchmark_message1_proto2_proto",
|
||
|
"//benchmarks/datasets/google_message1/proto3:benchmark_message1_proto3_proto",
|
||
|
"//benchmarks/datasets/google_message2:benchmark_message2_proto",
|
||
|
"//benchmarks/datasets/google_message3:benchmark_message3_proto",
|
||
|
"//benchmarks/datasets/google_message4:benchmark_message4_proto",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
cc_library(
|
||
|
name = "cc_protos",
|
||
4 years ago
|
visibility = [
|
||
|
"//benchmarks:__subpackages__",
|
||
|
],
|
||
4 years ago
|
deps = [
|
||
|
"//benchmarks/datasets/google_message1/proto2:benchmark_message1_proto2_cc_proto",
|
||
|
"//benchmarks/datasets/google_message1/proto3:benchmark_message1_proto3_cc_proto",
|
||
|
"//benchmarks/datasets/google_message2:benchmark_message2_cc_proto",
|
||
|
"//benchmarks/datasets/google_message3:benchmark_message3_cc_proto",
|
||
|
"//benchmarks/datasets/google_message4:benchmark_message4_cc_proto",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
java_library(
|
||
|
name = "java_protos",
|
||
4 years ago
|
visibility = [
|
||
|
"//benchmarks:__subpackages__",
|
||
|
],
|
||
4 years ago
|
exports = [
|
||
|
"//benchmarks/datasets/google_message1/proto2:benchmark_message1_proto2_java_proto",
|
||
|
"//benchmarks/datasets/google_message1/proto3:benchmark_message1_proto3_java_proto",
|
||
|
"//benchmarks/datasets/google_message2:benchmark_message2_java_proto",
|
||
|
"//benchmarks/datasets/google_message3:benchmark_message3_java_proto",
|
||
|
"//benchmarks/datasets/google_message4:benchmark_message4_java_proto",
|
||
|
],
|
||
|
)
|
||
3 years ago
|
|
||
|
pkg_files(
|
||
|
name = "dist_files",
|
||
3 years ago
|
srcs = ["BUILD.bazel"],
|
||
3 years ago
|
strip_prefix = strip_prefix.from_root(""),
|
||
|
visibility = ["//benchmarks:__pkg__"],
|
||
|
)
|