Add nanopb tool

This commit is contained in:
Changhua
2023-04-29 02:00:53 +08:00
parent c137e1b9fb
commit bc57b9a54d
14 changed files with 4113 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
# This file is used to invoke nanopb_generator.py as a plugin
# to protoc on Linux and other *nix-style systems.
# Use it like this:
# protoc --plugin=protoc-gen-nanopb=..../protoc-gen-nanopb --nanopb_out=dir foo.proto
from nanopb_generator import *
if __name__ == '__main__':
# Assume we are running as a plugin under protoc.
main_plugin()