blob: 02a396ca6d1611e5821317e4a8353bf19cbc8673 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
@echo off
rem Copyright (C) 2008-2012 Alon Bar-Lev <alon.barlev@gmail.com>
call msvc-env.bat
@rem this stupid command needed for SetEnv.cmd to operate
setlocal ENABLEDELAYEDEXPANSION
set PLATFORMS=Win32
set CONFIGURATIONS=Release
call "%VCHOME%\bin\vcvars32.bat"
for %%p in (%PLATFORMS%) do (
for %%c in (%CONFIGURATIONS%) do (
rmdir /q /s %SOURCEBASE%\%%p\%%c > nul 2>&1
vcbuild /errfile:error.log /showenv %SOLUTION% /rebuild /platform:%%p "%%c|%%p"
for %%f in (error.log) do if %%~zf GTR 0 goto error
)
)
exit /b 0
goto end
:error
if "%1" NEQ "batch" pause
exit /b 1
goto end
:end
endlocal
|