This commit is contained in:
2024-09-03 23:05:25 +01:00
parent b37f0e1b8f
commit a9d7869644
9 changed files with 494 additions and 116 deletions

View File

@@ -1,8 +1,21 @@
@echo off
if NOT EXIST .\build mkdir .\build
pushd .\build
pwd
cl -FC -Zi -Fe:handmade.exe ..\src\win32_handmade.cpp user32.lib Gdi32.lib
cl ^
-MT %= Make sure the C runtime library is statically linked =%^
-Fmwin32_handmade.map %= Create a map file =%^
-Gm- %= Turns off incremently building =%^
-nologo %= No one cares you made the compiler Microsoft =%^
-Oi %= Always use intrinsics =%^
-EHa- %= Disable exception handling =%^
-GR- %= Never use runtime type info from C++ =%^
-WX -W4 -wd4201 -wd4100 -wd4189 %= Compiler warnings, -WX warnings as errors, -W4 warning level 4, -wdXXXX disable warning XXXX =%^
-DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1 -DHANDMADE_WIN32=1 %= Custom #defines =%^
-FC %= Full path of source code file in diagnostics =%^
-Zi %= Generate debugger info =%^
-Fe:handmade.exe ..\src\win32_handmade.cpp %= Output filename, input filename =%^
user32.lib Gdi32.lib %= Linked libraries =%^
/link -subsystem:windows,5.1 %= Linker stuff =%
popd
exit /b