Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 1 | @rem Copyright 2016 gRPC authors. |
Jan Tattermusch | f551edf | 2016-05-13 10:49:17 -0700 | [diff] [blame] | 2 | @rem |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 3 | @rem Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | @rem you may not use this file except in compliance with the License. |
| 5 | @rem You may obtain a copy of the License at |
Jan Tattermusch | f551edf | 2016-05-13 10:49:17 -0700 | [diff] [blame] | 6 | @rem |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 7 | @rem http://www.apache.org/licenses/LICENSE-2.0 |
Jan Tattermusch | f551edf | 2016-05-13 10:49:17 -0700 | [diff] [blame] | 8 | @rem |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 9 | @rem Unless required by applicable law or agreed to in writing, software |
| 10 | @rem distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | @rem See the License for the specific language governing permissions and |
| 13 | @rem limitations under the License. |
Jan Tattermusch | f551edf | 2016-05-13 10:49:17 -0700 | [diff] [blame] | 14 | |
Jan Tattermusch | d68ef4f | 2015-08-26 11:43:45 -0700 | [diff] [blame] | 15 | @rem Convenience script to build gRPC protoc plugins from command line. protoc plugins are used to generate service stub code from .proto service defintions. |
| 16 | |
| 17 | setlocal |
| 18 | |
| 19 | @rem enter this directory |
| 20 | cd /d %~dp0 |
| 21 | |
| 22 | @rem Set VS variables (uses Visual Studio 2013) |
| 23 | @call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86 |
| 24 | |
| 25 | @rem Build third_party/protobuf |
Jan Tattermusch | e3e2106 | 2016-12-09 11:09:34 +0100 | [diff] [blame] | 26 | msbuild ..\third_party\protobuf\cmake\build\solution\protobuf.sln /p:Configuration=Release || goto :error |
Jan Tattermusch | d68ef4f | 2015-08-26 11:43:45 -0700 | [diff] [blame] | 27 | |
| 28 | @rem Build the C# protoc plugins |
| 29 | msbuild grpc_protoc_plugins.sln /p:Configuration=Release || goto :error |
| 30 | |
| 31 | endlocal |
| 32 | |
| 33 | goto :EOF |
| 34 | |
| 35 | :error |
| 36 | echo Failed! |
| 37 | exit /b %errorlevel% |