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.
50 lines
1.3 KiB
50 lines
1.3 KiB
load("@rules_cc//cc:defs.bzl", "cc_binary") |
|
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix") |
|
load("@rules_python//python:defs.bzl", "py_binary") |
|
|
|
package(default_visibility = ["//benchmarks:__subpackages__"]) |
|
|
|
cc_binary( |
|
name = "protoc-gen-proto2_to_proto3", |
|
srcs = [ |
|
"schema_proto2_to_proto3_util.h", |
|
"protoc-gen-proto2_to_proto3.cc", |
|
], |
|
deps = [ |
|
"//:protobuf", |
|
"//src/google/protobuf/compiler:code_generator", |
|
"//benchmarks:benchmarks_cc_proto", |
|
], |
|
visibility = ["//benchmarks:__subpackages__"], |
|
) |
|
|
|
cc_binary( |
|
name = "proto3_data_stripper", |
|
srcs = [ |
|
"data_proto2_to_proto3_util.h", |
|
"proto3_data_stripper.cc", |
|
], |
|
deps = [ |
|
"//:protobuf", |
|
"//benchmarks/datasets:cc_protos", |
|
"//benchmarks:benchmarks_cc_proto", |
|
], |
|
) |
|
|
|
py_binary( |
|
name = "result_parser", |
|
srcs = ["result_parser.py"], |
|
deps = [ |
|
"//benchmarks:benchmarks_py_proto", |
|
], |
|
) |
|
|
|
################################################################################ |
|
# Distribution files |
|
################################################################################ |
|
|
|
pkg_files( |
|
name = "dist_files", |
|
srcs = glob(["*"]), |
|
strip_prefix = strip_prefix.from_root(""), |
|
)
|
|
|