[wpiutil] Change C++ protobuf to nanopb (#7309)

The Google C++ protobuf implementation has issues with dynamic linkage across DLL boundaries because it uses global variables.  It also has a compile-time dependency because the protoc version must exactly match the libprotobuf version.  Using nanopb with a customized generator fixes both of these issues.

Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
This commit is contained in:
Thad House
2024-11-07 22:42:50 -08:00
committed by GitHub
parent fd2e0c0427
commit 8b8b634f65
166 changed files with 17522 additions and 1571 deletions

View File

@@ -155,6 +155,13 @@ protobuf {
}
generateProtoTasks {
all().configureEach { task ->
if (project.hasProperty('skipproto')) {
task.builtins {
cpp {}
remove java
}
return
}
task.inputs.file(rootProject.file("protoplugin/binary/wpiprotoplugin.jar"))
task.plugins {
wpilib {