1load("@rules_cc//cc:defs.bzl", "cc_binary") 2load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix") 3 4cc_binary( 5 name = "cpp", 6 srcs = [ 7 "cpp_benchmark.cc", 8 ], 9 tags = ["benchmark"], 10 deps = [ 11 "//:protobuf", 12 "//benchmarks:benchmarks_cc_proto", 13 "//benchmarks/datasets:cc_protos", 14 "@com_github_google_benchmark//:benchmark_main", 15 ], 16) 17 18pkg_files( 19 name = "dist_files", 20 srcs = [ 21 "BUILD.bazel", 22 "cpp_benchmark.cc", 23 ], 24 strip_prefix = strip_prefix.from_root(""), 25 visibility = ["//benchmarks:__pkg__"], 26) 27