mirror of https://github.com/grpc/grpc.git
parent
e937cd3bec
commit
c6d5f106aa
7 changed files with 126 additions and 3 deletions
@ -0,0 +1,3 @@ |
||||
/tmp |
||||
/output |
||||
*.nupkg |
@ -0,0 +1,20 @@ |
||||
gRPC Native Nuget package |
||||
========================= |
||||
|
||||
Prerequisites |
||||
------------- |
||||
Multiple versions of VS installed to be able to build all the targets: |
||||
* Visual Studio 2013 |
||||
* Visual Studio 2010 (you might need SP1 to prevent LNK1123 error) |
||||
|
||||
NuGet binary |
||||
|
||||
Building the package |
||||
-------------------- |
||||
|
||||
Build all flavors of gRPC C# extension and package them as a NuGet package. |
||||
``` |
||||
buildall.bat |
||||
|
||||
nuget pack grpc.native.csharp_ext |
||||
``` |
@ -0,0 +1,46 @@ |
||||
@echo off |
||||
setlocal |
||||
|
||||
REM setlocal |
||||
REM call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64 |
||||
REM call :build x64 Release v120 || goto :eof |
||||
REM call :build x64 Debug v120 || goto :eof |
||||
REM endlocal |
||||
|
||||
setlocal |
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 |
||||
call :build Win32 Release v120 || goto :eof |
||||
call :build Win32 Debug v120 || goto :eof |
||||
endlocal |
||||
|
||||
REM setlocal |
||||
REM call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 |
||||
REM call :build x64 Release v110 || goto :eof |
||||
REM call :build x64 Debug v110 || goto :eof |
||||
REM endlocal |
||||
|
||||
REM setlocal |
||||
REM call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 |
||||
REM call :build Win32 Release v110 || goto :eof |
||||
REM call :build Win32 Debug v110 || goto :eof |
||||
REM endlocal |
||||
|
||||
REM setlocal |
||||
REM call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 |
||||
REM call :build x64 Release v100 || goto :eof |
||||
REM call :build x64 Debug v100 || goto :eof |
||||
REM endlocal |
||||
|
||||
setlocal |
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 |
||||
call :build Win32 Release v100 || goto :eof |
||||
call :build Win32 Debug v100 || goto :eof |
||||
endlocal |
||||
|
||||
goto :eof |
||||
|
||||
:build |
||||
msbuild /t:grpc_csharp_ext /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:OutDir=..\nuget_package\output\%3\%1\%2\ /P:IntDir=..\nuget_package\tmp\%3\%1\%2\ ..\grpc.sln || goto :eof |
||||
goto :eof |
||||
|
||||
|
Loading…
Reference in new issue