LameXP/etc/Deployment/_build.bat

32 lines
957 B
Batchfile
Raw Normal View History

2010-11-06 23:04:47 +01:00
@echo off
set "LAMEXP_BUILD_SUCCESS=NO"
2010-11-06 23:04:47 +01:00
echo ----------------------------------------------------------------
echo Solution File: %1
echo Configuration: %~n2
echo ----------------------------------------------------------------
call _paths.bat
2010-11-06 23:04:47 +01:00
call "%PATH_MSVC90%\VC\bin\vcvars32.bat"
call "%PATH_QTMSVC%\bin\qtvars.bat"
REM -----------------------------------------------------------------
msbuild.exe /property:Configuration=%~n2 /target:Clean /verbosity:d %1
if exist "%~d1%~p1bin\%~n2\*.exe" (
echo.
echo CLEANUP HAS FAILED!
echo.
GOTO:EOF
)
if exist "%~d1%~p1obj\%~n2\*.obj" (
echo.
echo CLEANUP HAS FAILED!
echo.
GOTO:EOF
)
echo ----------------------------------------------------------------
msbuild.exe /property:Configuration=%~n2 /target:Rebuild /verbosity:d %1
echo ----------------------------------------------------------------
if not exist "%~d1%~p1bin\%~n2\%~n1.exe" (
echo BUILD HAS FAILED!
exit
)
set "LAMEXP_BUILD_SUCCESS=YES"