anton_render/build.bat
2025-05-14 13:30:49 +02:00

53 lines
944 B
Batchfile

@echo off
echo --- Metagen
@rem ---------------------------------------------------------------------------------------
@rem Build and run codegen
IF NOT EXIST .\build mkdir .\build
pushd .\build
ctime -begin timeBuild.ctm
cl /Zi /nologo ../src/metagen/codegen.c
set LastError=%ERRORLEVEL%
ctime -end timeBuild.ctm %LastError%
popd
IF NOT %LastError%==0 GOTO :end
pushd src
pushd gen_test
..\..\build\codegen.exe ./
popd
popd
echo --- Main
@rem ---------------------------------------------------------------------------------------
@rem Build main program
set CommonCompilerFlags=/nologo /Zi /FC /Od /wd4042
@rem /WX /W4 /wd4201 /wd4100 /wd4189 /wd4244 /wd4127 /wd4456
@rem
@rem
IF NOT EXIST .\build mkdir .\build
pushd .\build
ctime -begin timeBuild.ctm
cl %CommonCompilerFlags% ../src/main.c /Fe:program.exe
set LastError=%ERRORLEVEL%
ctime -end timeBuild.ctm %LastError%
popd
IF NOT %LastError%==0 GOTO :end
:end
echo ---