blob: 85a3b78d4bf7c92bef6dd9ca6860a278151b52d7 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001@rem Copyright 2016 gRPC authors.
Jan Tattermuschf551edf2016-05-13 10:49:17 -07002@rem
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003@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 Tattermuschf551edf2016-05-13 10:49:17 -07006@rem
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007@rem http://www.apache.org/licenses/LICENSE-2.0
Jan Tattermuschf551edf2016-05-13 10:49:17 -07008@rem
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009@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 Tattermuschf551edf2016-05-13 10:49:17 -070014
Jan Tattermuschd68ef4f2015-08-26 11:43:45 -070015@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
17setlocal
18
19@rem enter this directory
20cd /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 Tattermusche3e21062016-12-09 11:09:34 +010026msbuild ..\third_party\protobuf\cmake\build\solution\protobuf.sln /p:Configuration=Release || goto :error
Jan Tattermuschd68ef4f2015-08-26 11:43:45 -070027
28@rem Build the C# protoc plugins
29msbuild grpc_protoc_plugins.sln /p:Configuration=Release || goto :error
30
31endlocal
32
33goto :EOF
34
35:error
36echo Failed!
37exit /b %errorlevel%