This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Xash3DArchive/debug.bat

72 lines
2.1 KiB
Batchfile
Raw Normal View History

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=debug
set BUILD_ERROR=
call vcvars32
%MSDEV% editor/editor.dsp %CONFIG%"editor - Win32 Debug" %build_target%
if errorlevel 1 set BUILD_ERROR=1
%MSDEV% engine/engine.dsp %CONFIG%"engine - Win32 Debug" %build_target%
if errorlevel 1 set BUILD_ERROR=1
2007-09-14 22:00:00 +02:00
%MSDEV% launch/launch.dsp %CONFIG%"launch - Win32 Debug" %build_target%
2007-06-21 22:00:00 +02:00
if errorlevel 1 set BUILD_ERROR=1
2007-09-13 22:00:00 +02:00
%MSDEV% common/common.dsp %CONFIG%"common - Win32 Debug" %build_target%
2007-06-21 22:00:00 +02:00
if errorlevel 1 set BUILD_ERROR=1
2007-10-22 22:00:00 +02:00
%MSDEV% physic/physic.dsp %CONFIG%"physic - Win32 Debug" %build_target%
if errorlevel 1 set BUILD_ERROR=1
2007-09-13 22:00:00 +02:00
%MSDEV% render/render.dsp %CONFIG%"render - Win32 Debug" %build_target%
2007-06-21 22:00:00 +02:00
if errorlevel 1 set BUILD_ERROR=1
2007-11-20 22:00:00 +01:00
qcclib.exe -dir pr_server /V7 /Od
if errorlevel 1 set BUILD_ERROR=1
qcclib.exe -dir pr_client /V7 /Od
if errorlevel 1 set BUILD_ERROR=1
qcclib.exe -dir pr_uimenu /V7 /Od
2007-06-21 22:00:00 +02:00
if errorlevel 1 set BUILD_ERROR=1
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
2007-09-04 22:00:00 +02:00
if exist editor\editor.plg del /f /q editor\editor.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
2007-09-13 22:00:00 +02:00
if exist common\common.plg del /f /q common\common.plg
2007-10-22 22:00:00 +02:00
if exist physic\physic.plg del /f /q physic\physic.plg
2007-09-13 22:00:00 +02:00
if exist render\render.plg del /f /q render\render.plg
2007-11-20 22:00:00 +01:00
if exist temp\server.dat move temp\server.dat D:\Xash3D\xash\vprogs\server.dat
if exist temp\client.dat move temp\client.dat D:\Xash3D\xash\vprogs\client.dat
if exist temp\uimenu.dat move temp\uimenu.dat D:\Xash3D\xash\vprogs\uimenu.dat
2007-10-03 22:00:00 +02:00
if exist compile.log del /f /q compile.log
2007-06-21 22:00:00 +02:00
echo Build succeeded!
echo Please wait. Xash is now loading
cd D:\Xash3D\
2007-12-05 22:00:00 +01:00
xash.exe +map phystest -log -debug -dev 3
2007-06-21 22:00:00 +02:00
:done