mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-07 09:43:40 +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
99 lines
2.2 KiB
Python
99 lines
2.2 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
|
|
load("@rules_java//java:defs.bzl", "java_proto_library")
|
|
load("@rules_pkg//:mappings.bzl", "pkg_filegroup", "pkg_files", "strip_prefix")
|
|
load("@rules_proto//proto:defs.bzl", "proto_library")
|
|
|
|
proto_library(
|
|
name = "benchmarks_proto",
|
|
srcs = [
|
|
"benchmarks.proto",
|
|
],
|
|
strip_import_prefix = "/benchmarks",
|
|
visibility = [
|
|
"//benchmarks:__subpackages__",
|
|
],
|
|
)
|
|
|
|
cc_proto_library(
|
|
name = "benchmarks_cc_proto",
|
|
visibility = [
|
|
"//benchmarks:__subpackages__",
|
|
],
|
|
deps = [
|
|
"benchmarks_proto",
|
|
],
|
|
)
|
|
|
|
java_proto_library(
|
|
name = "benchmarks_java_proto",
|
|
visibility = [
|
|
"//benchmarks:__subpackages__",
|
|
],
|
|
deps = [
|
|
"benchmarks_proto",
|
|
],
|
|
)
|
|
|
|
proto_library(
|
|
name = "google_size_proto",
|
|
srcs = [
|
|
"google_size.proto",
|
|
],
|
|
strip_import_prefix = "/benchmarks",
|
|
visibility = [
|
|
"//benchmarks:__subpackages__",
|
|
],
|
|
)
|
|
|
|
cc_proto_library(
|
|
name = "google_size_cc_proto",
|
|
visibility = [
|
|
"//benchmarks:__subpackages__",
|
|
],
|
|
deps = [
|
|
"google_size_proto",
|
|
],
|
|
)
|
|
|
|
java_proto_library(
|
|
name = "google_size_java_proto",
|
|
visibility = [
|
|
"//benchmarks:__subpackages__",
|
|
],
|
|
deps = [
|
|
"google_size_proto",
|
|
],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "dist_files",
|
|
srcs = glob(
|
|
[
|
|
"*",
|
|
"python/*.cc",
|
|
"util/*.cc",
|
|
],
|
|
exclude = [
|
|
"__init__.py", # not in autotools dist
|
|
"go/*",
|
|
],
|
|
),
|
|
strip_prefix = strip_prefix.from_root(""),
|
|
)
|
|
|
|
# Convenience filegroup for all files that should be packaged.
|
|
pkg_filegroup(
|
|
name = "all_dist_files",
|
|
srcs = [
|
|
":dist_files",
|
|
"//benchmarks/cpp:dist_files",
|
|
# "//benchmarks/datasets:dist_files", # not in autotools dist
|
|
"//benchmarks/datasets/google_message1/proto2:dist_files",
|
|
"//benchmarks/datasets/google_message1/proto3:dist_files",
|
|
"//benchmarks/datasets/google_message2:dist_files",
|
|
"//benchmarks/datasets/google_message3:dist_files",
|
|
"//benchmarks/datasets/google_message4:dist_files",
|
|
],
|
|
visibility = ["//pkg:__pkg__"],
|
|
)
|