summaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2024-03-27 04:19:47 +0500
committertalha <talha@talhaamir.xyz>2024-03-27 04:19:47 +0500
commit6d21cde397ff246c053274c47fd33f3b84f68c6e (patch)
tree53de7afec887986140b0e5fdd7a004c134bd1ae8 /build.bat
parent2a1557aa2b4d406c92703f60f2d34283fed5fcfb (diff)
Added directional lighting, point lights
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.bat b/build.bat
index 21a7930..ec99f57 100644
--- a/build.bat
+++ b/build.bat
@@ -12,13 +12,15 @@ REM runtime library into the executable
REM ********************************************
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%"
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.cpp %CommonFileFlags% /link /LIBPATH:LibPath -subsystem:windows %CommonLinkerFlags%
+cl %CommonCompilerFlags% %CommonIncludeFlags% %ProjectRoot%\source\main.cpp %CommonFileFlags% /link /LIBPATH:LibPath -subsystem:console %CommonLinkerFlags%
popd