mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user