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
|
|
|
|
|
2008-07-24 22:00:00 +02:00
|
|
|
%MSDEV% baserc/baserc.dsp %CONFIG%"baserc - Win32 Release" %build_target%
|
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2008-12-25 22:00:00 +01:00
|
|
|
%MSDEV% client/client.dsp %CONFIG%"client - Win32 Release" %build_target%
|
|
|
|
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
|
|
|
|
|
2007-09-14 22:00:00 +02:00
|
|
|
%MSDEV% launch/launch.dsp %CONFIG%"launch - Win32 Release" %build_target%
|
2007-06-21 22:00:00 +02:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2009-11-03 22:00:00 +01:00
|
|
|
%MSDEV% cms_qf/cms_qf.dsp %CONFIG%"cms_qf - Win32 Release" %build_target%
|
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
|
|
|
%MSDEV% cms_xr/cms_xr.dsp %CONFIG%"cms_xr - Win32 Release" %build_target%
|
2007-10-22 22:00:00 +02:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2009-10-02 22:00:00 +02:00
|
|
|
%MSDEV% vid_gl/vid_gl.dsp %CONFIG%"vid_gl - Win32 Release" %build_target%
|
2007-06-21 22:00:00 +02:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2008-12-25 22:00:00 +01:00
|
|
|
%MSDEV% server/server.dsp %CONFIG%"server - Win32 Release" %build_target%
|
2008-12-20 22:00:00 +01:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2008-06-04 22:00:00 +02:00
|
|
|
%MSDEV% vprogs/vprogs.dsp %CONFIG%"vprogs - Win32 Release" %build_target%
|
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2009-10-02 22:00:00 +02:00
|
|
|
%MSDEV% snd_al/snd_al.dsp %CONFIG%"snd_al - Win32 Release" %build_target%
|
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
|
|
|
%MSDEV% snd_dx/snd_dx.dsp %CONFIG%"snd_dx - Win32 Release" %build_target%
|
2008-06-12 22:00:00 +02:00
|
|
|
if errorlevel 1 set BUILD_ERROR=1
|
|
|
|
|
2009-01-11 22:00:00 +01:00
|
|
|
%MSDEV% xtools/xtools.dsp %CONFIG%"xtools - 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
|
2008-07-24 22:00:00 +02:00
|
|
|
if exist baserc\baserc.plg del /f /q baserc\baserc.plg
|
2008-12-26 22:00:00 +01:00
|
|
|
if exist client\client.plg del /f /q client\client.plg
|
2007-06-21 22:00:00 +02:00
|
|
|
if exist engine\engine.plg del /f /q engine\engine.plg
|
2007-09-14 22:00:00 +02:00
|
|
|
if exist launch\launch.plg del /f /q launch\launch.plg
|
2009-11-03 22:00:00 +01:00
|
|
|
if exist cms_qf\cms_qf.plg del /f /q cms_qf\cms_qf.plg
|
|
|
|
if exist cms_xr\cms_xr.plg del /f /q cms_xr\cms_xr.plg
|
2009-10-02 22:00:00 +02:00
|
|
|
if exist vid_gl\vid_gl.plg del /f /q vid_gl\vid_gl.plg
|
2008-12-25 22:00:00 +01:00
|
|
|
if exist server\server.plg del /f /q server\server.plg
|
2008-06-04 22:00:00 +02:00
|
|
|
if exist vprogs\vprogs.plg del /f /q vprogs\vprogs.plg
|
2009-10-02 22:00:00 +02:00
|
|
|
if exist snd_al\snd_al.plg del /f /q snd_al\snd_al.plg
|
|
|
|
if exist snd_dx\snd_dx.plg del /f /q snd_dx\snd_dx.plg
|
2009-01-11 22:00:00 +01:00
|
|
|
if exist xtools\xtools.plg del /f /q xtools\xtools.plg
|
2007-06-21 22:00:00 +02:00
|
|
|
|
|
|
|
echo Build succeeded!
|
|
|
|
echo Please wait. Xash is now loading
|
|
|
|
cd D:\Xash3D\
|
2009-09-25 22:00:00 +02:00
|
|
|
xash.exe -dev 3 -log +map dm_qstyle
|
2007-06-21 22:00:00 +02:00
|
|
|
:done
|