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