protoc-gen-nanopb.bat 449 B

123456789101112
  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. set mydir=%~dp0
  11. python "%mydir%\nanopb_generator.py" --protoc-plugin %*