mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-05 17:13:36 +08:00
c5d57c03ee
* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
27 lines
600 B
Python
27 lines
600 B
Python
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
|
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
|
|
|
|
cc_binary(
|
|
name = "cpp",
|
|
srcs = [
|
|
"cpp_benchmark.cc",
|
|
],
|
|
tags = ["benchmark"],
|
|
deps = [
|
|
"//:protobuf",
|
|
"//benchmarks:benchmarks_cc_proto",
|
|
"//benchmarks/datasets:cc_protos",
|
|
"@com_github_google_benchmark//:benchmark_main",
|
|
],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "dist_files",
|
|
srcs = [
|
|
"BUILD.bazel",
|
|
"cpp_benchmark.cc",
|
|
],
|
|
strip_prefix = strip_prefix.from_root(""),
|
|
visibility = ["//benchmarks:__pkg__"],
|
|
)
|