2007-06-21 22:00:00 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set MSDEV=BuildConsole
|
|
|
|
set CONFIG=/ShowTime /ShowAgent /nologo /cfg=
|
|
|
|
set MSDEV=msdev
|
|
|
|
set CONFIG=/make
|
|
|
|
set build_type=release
|
|
|
|
set BUILD_ERROR=
|
|
|
|
call vcvars32
|
|
|
|
|
2010-08-15 22:00:00 +02:00
|
|
|
%MSDEV% dlls/hl.dsp %CONFIG%"hl - Win32 Release" %build_target%
|
2010-04-09 22:00:00 +02:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2010-11-15 22:00:00 +01:00
|
|
|
%MSDEV% cl_dll/cl_dll.dsp %CONFIG%"cl_dll - Win32 Release" %build_target%
|
2008-12-25 22:00:00 +01:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2007-06-21 22:00:00 +02:00
|
|
|
%MSDEV% engine/engine.dsp %CONFIG%"engine - Win32 Release" %build_target%
|
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2010-11-15 22:00:00 +01:00
|
|
|
%MSDEV% mainui/mainui.dsp %CONFIG%"mainui - Win32 Release" %build_target%
|
2010-07-17 22:00:00 +02:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2011-01-09 22:00:00 +01:00
|
|
|
%MSDEV% room/room.dsp %CONFIG%"room - Win32 Release" %build_target%
|
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2007-06-21 22:00:00 +02:00
|
|
|
if "%BUILD_ERROR%"=="" goto build_ok
|
|
|
|
|
|
|
|
echo *********************
|
|
|
|
echo *********************
|
|
|
|
echo *** Build Errors! ***
|
|
|
|
echo *********************
|
|
|
|
echo *********************
|
|
|
|
echo press any key to exit
|
|
|
|
echo *********************
|
|
|
|
pause>nul
|
|
|
|
goto done
|
|
|
|
|
|
|
|
|
|
|
|
@rem
|
|
|
|
@rem Successful build
|
|
|
|
@rem
|
|
|
|
:build_ok
|
|
|
|
|
|
|
|
rem //delete log files
|
2010-08-16 22:00:00 +02:00
|
|
|
if exist dlls\hl.plg del /f /q dlls\hl.plg
|
2010-11-15 22:00:00 +01:00
|
|
|
if exist cl_dll\cl_dll.plg del /f /q cl_dll\cl_dll.plg
|
2007-06-21 22:00:00 +02:00
|
|
|
if exist engine\engine.plg del /f /q engine\engine.plg
|
2010-11-15 22:00:00 +01:00
|
|
|
if exist mainui\mainui.plg del /f /q mainui\mainui.plg
|
2010-07-30 22:00:00 +02:00
|
|
|
if exist launch\launch.plg del /f /q launch\launch.plg
|
2011-01-09 22:00:00 +01:00
|
|
|
if exist room\room.plg del /f /q room\room.plg
|
2007-06-21 22:00:00 +02:00
|
|
|
|
2010-07-30 22:00:00 +02:00
|
|
|
echo
|
2007-06-21 22:00:00 +02:00
|
|
|
echo Build succeeded!
|
2010-07-30 22:00:00 +02:00
|
|
|
echo
|
2007-06-21 22:00:00 +02:00
|
|
|
:done
|