diff options
author | Alistair Veitch <aveitch@google.com> | 2015-08-28 11:00:02 -0700 |
---|---|---|
committer | Alistair Veitch <aveitch@google.com> | 2015-08-28 11:00:02 -0700 |
commit | ae7bbfcb92a519c5a97aae51b2e668cb2d75fe67 (patch) | |
tree | da337117b631a1eead2b984719476e42a29e7994 /vsprojects/build_plugins.bat | |
parent | b8552024179a2910f10d916e69495779271f9344 (diff) | |
parent | 9b1f91e7eac88ba477871a60912cc3b6ed3380ed (diff) |
merge to head
Diffstat (limited to 'vsprojects/build_plugins.bat')
-rw-r--r-- | vsprojects/build_plugins.bat | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vsprojects/build_plugins.bat b/vsprojects/build_plugins.bat new file mode 100644 index 0000000000..4c33a584ad --- /dev/null +++ b/vsprojects/build_plugins.bat @@ -0,0 +1,23 @@ +@rem Convenience script to build gRPC protoc plugins from command line. protoc plugins are used to generate service stub code from .proto service defintions. + +setlocal + +@rem enter this directory +cd /d %~dp0 + +@rem Set VS variables (uses Visual Studio 2013) +@call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86 + +@rem Build third_party/protobuf +msbuild ..\third_party\protobuf\cmake\protobuf.sln /p:Configuration=Release || goto :error + +@rem Build the C# protoc plugins +msbuild grpc_protoc_plugins.sln /p:Configuration=Release || goto :error + +endlocal + +goto :EOF + +:error +echo Failed! +exit /b %errorlevel% |