@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 /wd5287 ..\\src\\metagen\\metagen_main.c set LastError=%ERRORLEVEL% ctime -end timeBuild.ctm %LastError% popd echo --- Codegen: IF NOT %LastError%==0 GOTO :end ctime -begin timeBuild.ctm pushd src ..\build\metagen_main.exe popd echo Codegen time: set LastError=%ERRORLEVEL% ctime -end timeBuild.ctm %LastError% echo --- Main @rem --------------------------------------------------------------------------------------- @rem Build main program set CommonCompilerFlags=/nologo /Zi /FC /Od /wd4042 @rem set IncludeD3D12= @rem set INCLUDE=%INCLUDE%;%IncludeD3D12% @rem /WX /W4 /wd4201 /wd4100 /wd4189 /wd4244 /wd4127 /wd4456 @rem @rem IF NOT EXIST .\build mkdir .\build pushd .\build ctime -begin timeBuild.ctm @rem echo INCLUDE: @rem echo %INCLUDE% @rem echo LIB: @rem echo %LIB% @rem @echo on cl %CommonCompilerFlags% ../src/main.c /Fe:program.exe @rem @echo off set LastError=%ERRORLEVEL% ctime -end timeBuild.ctm %LastError% popd IF NOT %LastError%==0 GOTO :end :end echo ---