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