diff options
author | talha <talha@talhaamir.xyz> | 2023-08-30 11:04:00 +0500 |
---|---|---|
committer | talha <talha@talhaamir.xyz> | 2023-08-30 11:04:00 +0500 |
commit | d980dcd2b66e4879989ce18291d044d5a4ffc902 (patch) | |
tree | 4f5fbd30d5152ffd21783eb02976bbaed6e0dd21 /build.bat |
setting up font-rendering repo
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 22 |
1 files changed, 22 insertions, 0 deletions
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 |