Fix protoc plugin path
[apps/agl-service-can-low-level.git] / generator / protoc-gen-nanopb.bat
1 :: This file is used to invoke nanopb_generator.py as a plugin
2 :: to protoc on Windows.
3 :: Use it like this:
4 :: protoc --plugin=nanopb=..../protoc-gen-nanopb.bat --nanopb_out=dir foo.proto
5 ::
6 :: Note that if you use the binary package of nanopb, the protoc
7 :: path is already set up properly and there is no need to give
8 :: --plugin= on the command line.
9
10 set mydir=%~dp0
11 python %mydir%\nanopb_generator.py --protoc-plugin