blob: 4c33a584ad46baaf14bd78eb4777c66e255871b2 [file] [log] [blame]
Jan Tattermuschd68ef4f2015-08-26 11:43:45 -07001@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
3setlocal
4
5@rem enter this directory
6cd /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
12msbuild ..\third_party\protobuf\cmake\protobuf.sln /p:Configuration=Release || goto :error
13
14@rem Build the C# protoc plugins
15msbuild grpc_protoc_plugins.sln /p:Configuration=Release || goto :error
16
17endlocal
18
19goto :EOF
20
21:error
22echo Failed!
23exit /b %errorlevel%