diff options
author | talha <talha@talhaamir.xyz> | 2024-03-12 04:47:19 +0500 |
---|---|---|
committer | talha <talha@talhaamir.xyz> | 2024-03-12 04:47:19 +0500 |
commit | b8b64ac409f78f3b7a1798aa645a44554f99868f (patch) | |
tree | 085aee04220a2b7d7e192bd10784502c1edefa5f /build.bat | |
parent | 7cc462063081f613c50bfd872188a50b8300d151 (diff) |
Updated project, fixed implicit type conversion issues
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,9 +10,9 @@ 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:\programming\sdl_base\build mkdir w:\programming\sdl_base\build -pushd w:\programming\sdl_base\build -set ProjectRoot=w:\programming\sdl_base +IF NOT EXIST w:\programming\learn_opengl_simple\build mkdir w:\programming\learn_opengl_simple\build +pushd w:\programming\learn_opengl_simple\build +set ProjectRoot=w:\programming\learn_opengl_simple set IncludePath=%ProjectRoot%\include set LibPath=%ProjectRoot%\libs set CommonIncludeFlags=/I"%IncludePath%" @@ -20,5 +20,5 @@ set CommonFileFlags=%IncludePath%\glad\glad.c set CommonLinkerFlags=-incremental:no %ProjectRoot%\libs\SDL2\SDL2.lib %ProjectRoot%\libs\SDL2\SDL2main.lib opengl32.lib shell32.lib set CommonCompilerFlags=-MT -nologo -Gm- -GR- -EHa- -Od -Oi -WX -W2 -wd4201 -wd4100 -wd4189 -FC -Z7 -cl %CommonCompilerFlags% %CommonIncludeFlags% %ProjectRoot%\main.c %CommonFileFlags% /link /LIBPATH:LibPath -subsystem:windows %CommonLinkerFlags% +cl %CommonCompilerFlags% %CommonIncludeFlags% %ProjectRoot%\main.cpp %CommonFileFlags% /link /LIBPATH:LibPath -subsystem:windows %CommonLinkerFlags% popd |