From d980dcd2b66e4879989ce18291d044d5a4ffc902 Mon Sep 17 00:00:00 2001 From: talha Date: Wed, 30 Aug 2023 11:04:00 +0500 Subject: setting up font-rendering repo --- build.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build.bat (limited to 'build.bat') diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..e2fc21e --- /dev/null +++ b/build.bat @@ -0,0 +1,22 @@ +@echo off +REM Flags +REM ***********Compiler Switches***************** +REM -Zi => Produces Debug Information (.pdb files) +REM ^__(can be problematic) +REM -GR- => Disable runtime type info +REM -EHa- => Disable exception handling +REM -Oi => Enable compiler intrinsics +REM -Od => (for learning) No Optimisation and leave everything as is +REM -MT => Use the static library, package all the c +REM runtime library into the executable +REM ******************************************** +IF NOT EXIST w:\gamedev\playground\font-rendering\build mkdir w:\gamedev\playground\font-rendering\build +pushd w:\gamedev\playground\font-rendering\build +set ProjectRoot=w:\gamedev\playground\font-rendering +set IncludePath=%ProjectRoot%\include +set LibPath=%ProjectRoot%\lib +set CommonIncludeFlags=/I"%IncludePath%" /Iglfw +set CommonCompilerFlags=-MT -nologo -Gm- -GR- -EHa- -Od -Oi -WX -W2 -wd4201 -wd4100 -wd4189 -FC -Z7 +set CommonLinkerFlags=%ProjectRoot%\lib\glfw3.lib opengl32.lib kernel32.lib user32.lib gdi32.lib winmm.lib shell32.lib +cl %CommonCompilerFlags% %CommonIncludeFlags% %ProjectRoot%\code\win32_main.cpp %ProjectRoot%\code\glad.c /link %CommonLinkerFlags% /NODEFAULTLIB:LIBCMT +popd -- cgit v1.2.3