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.
36 lines
894 B
36 lines
894 B
load("@rules_cc//cc:defs.bzl", "cc_binary") |
|
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix") |
|
load("//benchmarks:internal.bzl", "internal_benchmark_test") |
|
|
|
# The benchmark binary which can be run over any dataset. |
|
cc_binary( |
|
name = "cpp_benchmark", |
|
srcs = [ |
|
"cpp_benchmark.cc", |
|
], |
|
deps = [ |
|
"//:protobuf", |
|
"//benchmarks:benchmarks_cc_proto", |
|
"//benchmarks/datasets:cc_protos", |
|
"@com_github_google_benchmark//:benchmark_main", |
|
], |
|
) |
|
|
|
# A pre-configured binary using the checked in datasets. |
|
internal_benchmark_test( |
|
name = "cpp", |
|
binary = ":cpp_benchmark", |
|
datasets = [ |
|
"//benchmarks/datasets", |
|
], |
|
) |
|
|
|
pkg_files( |
|
name = "dist_files", |
|
srcs = [ |
|
"BUILD.bazel", |
|
"cpp_benchmark.cc", |
|
], |
|
strip_prefix = strip_prefix.from_root(""), |
|
visibility = ["//benchmarks:__pkg__"], |
|
)
|
|
|