Jan Tattermusch | d68ef4f | 2015-08-26 11:43:45 -0700 | [diff] [blame^] | 1 | @rem Convenience script to build gRPC protoc plugins from command line. protoc plugins are used to generate service stub code from .proto service defintions. |
| 2 | |
| 3 | setlocal |
| 4 | |
| 5 | @rem enter this directory |
| 6 | cd /d %~dp0 |
| 7 | |
| 8 | @rem Set VS variables (uses Visual Studio 2013) |
| 9 | @call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86 |
| 10 | |
| 11 | @rem Build third_party/protobuf |
| 12 | msbuild ..\third_party\protobuf\cmake\protobuf.sln /p:Configuration=Release || goto :error |
| 13 | |
| 14 | @rem Build the C# protoc plugins |
| 15 | msbuild grpc_protoc_plugins.sln /p:Configuration=Release || goto :error |
| 16 | |
| 17 | endlocal |
| 18 | |
| 19 | goto :EOF |
| 20 | |
| 21 | :error |
| 22 | echo Failed! |
| 23 | exit /b %errorlevel% |