4coder/build.bat

28 lines
605 B
Batchfile
Raw Normal View History

2016-01-06 15:39:15 +00:00
@echo off
call "ctime" -begin 4ed_data.ctm
SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX
SET OPTS=/GR- /EHa- /nologo /FC
SET FirstError=0
2016-09-05 01:27:37 +00:00
SET BUILD_MODE="%1"
if "%BUILD_MODE%" == "" (SET BUILD_MODE="/DDEV_BUILD")
pushd ..\build
2016-09-05 01:27:37 +00:00
cl %OPTS% ..\code\build.c /Febuild %BUILD_MODE%
if %ERRORLEVEL% neq 0 (set FirstError=1)
popd
..\build\build
if %ERRORLEVEL% neq 0 (set FirstError=1)
pushd ..\build
call "print_size.bat" 4coder_custom.dll
call "print_size.bat" 4ed_app.dll
call "print_size.bat" 4ed.exe
popd
2016-09-05 01:27:37 +00:00
call "ctime" -end 4ed_data.ctm %FirstError%