• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@rem Copyright 2016 gRPC authors.
2@rem
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
6@rem
7@rem     http://www.apache.org/licenses/LICENSE-2.0
8@rem
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.
14
15@rem Performs nuget restore step for C#.
16
17setlocal
18
19set ARCHITECTURE=%1
20
21@rem enter repo root
22cd /d %~dp0\..\..\..
23
24mkdir cmake
25cd cmake
26mkdir build
27cd build
28mkdir %ARCHITECTURE%
29cd %ARCHITECTURE%
30
31cmake -G "Visual Studio 14 2015" -A %ARCHITECTURE% -DgRPC_BUILD_TESTS=OFF -DgRPC_MSVC_STATIC_RUNTIME=ON ../../.. || goto :error
32
33cd ..\..\..\src\csharp
34
35if NOT DEFINED GRPC_SKIP_DOTNET_RESTORE (
36  dotnet restore Grpc.sln || goto :error
37)
38
39endlocal
40
41goto :EOF
42
43:error
44echo Failed!
45exit /b %errorlevel%
46