Add support for running the nanopb generator as protoc plugin.

Will be used to implement issue 47.

For now, symlink nanopb_generator.py as protoc-gen-nanopb and
use protoc --nanopb_out=. to call it.
This commit is contained in:
Petteri Aimonen
2013-09-08 19:55:05 +03:00
parent d7f3a74388
commit 4821e7f457
4 changed files with 419 additions and 55 deletions

View File

@@ -1,2 +1,5 @@
nanopb_pb2.py: nanopb.proto
protoc --python_out=. -I /usr/include -I . nanopb.proto
plugin_pb2.py: plugin.proto
protoc --python_out=. -I /usr/include -I . plugin.proto