Makefile separators
[novacoin.git] / MSVC / build-helpers / buildminiupnpc.bat
1 @ECHO ON
2 cd c:\MyProjects\Deps\miniupnpc
3 if %errorlevel% NEQ 0 goto ERRORCLEANUP
4 copy miniupnpcstrings.h.in miniupnpcstrings.h
5 cd C:\MyProjects\Deps\miniupnpc\msvc
6 if %errorlevel% NEQ 0 goto ERRORCLEANUP
7 set VisualStudioVersion=11.0
8 copy C:\MyProjects\Deps\build-helpers\miniupnpc.vcxproj . /Y
9 if %errorlevel% NEQ 0 goto ERRORCLEANUP
10 call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
11 msbuild.exe  miniupnpc.vcxproj /t:clean /p:Configuration="Release" /p:Platform="Win32"
12 msbuild.exe  miniupnpc.vcxproj /t:clean /p:Configuration="Debug" /p:Platform="Win32"
13 msbuild.exe  miniupnpc.vcxproj /p:Configuration="Release" /p:Platform="Win32"
14 msbuild.exe  miniupnpc.vcxproj /p:Configuration="Debug" /p:Platform="Win32"
15 REM
16 REM now clean and build 64 bit
17 call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86_amd64
18 msbuild.exe  miniupnpc.vcxproj /t:clean /p:Configuration="Release" /p:Platform="x64"
19 msbuild.exe  miniupnpc.vcxproj /t:clean /p:Configuration="Debug" /p:Platform="x64"
20 msbuild.exe  miniupnpc.vcxproj /p:Configuration="Release" /p:Platform="x64"
21 msbuild.exe  miniupnpc.vcxproj /p:Configuration="Debug" /p:Platform="x64"
22 echo All finished!
23 pause
24 goto EOF
25 :ERRORCLEANUP
26 echo Something went wrong, please check the directories in this batch file!
27 pause
28 :EOF