1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/thirdparty/protobuf-3.21.8/pkg
Nicholas Hastings c5d57c03ee
Update Protobuf and add protos for CS2 (#176)
* 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
2023-11-15 23:58:12 +00:00
..
build_systems.bzl Update Protobuf and add protos for CS2 (#176) 2023-11-15 23:58:12 +00:00
BUILD.bazel Update Protobuf and add protos for CS2 (#176) 2023-11-15 23:58:12 +00:00
cc_dist_library.bzl Update Protobuf and add protos for CS2 (#176) 2023-11-15 23:58:12 +00:00
README.md Update Protobuf and add protos for CS2 (#176) 2023-11-15 23:58:12 +00:00

Protobuf packaging

This directory contains Bazel rules for building packaging and distribution artifacts.

Everything in this directory should be considered internal and subject to change.

Protocol compiler binary packaging

The protocol compiler is used in binary form in various places. There are rules which package it, along with commonly used .proto files, for distribution.

Source distribution packaging

Protobuf releases include source distributions, sliced by target language (C++, Java, etc.). There are rules in this package to define those source archives. These depend upon pkg_files rules elsewhere in the repo to get the contents.

The source distribution files should include the outputs from autogen.sh, but this isn't something we can reliably do from Bazel. To produce fully functioning source distributions, run autogen.sh before building the archives (this populates the necessary files directly into the source tree).

C++ runtime binary distribution

The cc_dist_library rule creates composite libraries from several other cc_library targets. Bazel uses a "fine-grained" library model, where each cc_library produces its own library artifacts, without transitive dependencies. The cc_dist_library rule combines several other libraries together, creating a single library that may be suitable for distribution.