You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.bat 1.6 KiB

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