blob: d2cd96973e78850484538727bf74faa569720d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
@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:\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 %LibPath%\SDL2\SDL2.lib %LibPath%\SDL2\SDL2main.lib %LibPath%\assimp\assimp-vc143-mtd.lib %LibPath%\freetype\freetype.lib opengl32.lib shell32.lib
set CommonCompilerFlags=-MT -nologo -Gm- -GR- -EHa- -Od -Oi -WX -W2 -wd4201 -wd4100 -wd4189 -FC -Z7 -EHsc
cl %CommonCompilerFlags% %CommonIncludeFlags% %ProjectRoot%\source\main.cpp %CommonFileFlags% /link /LIBPATH:LibPath -subsystem:console %CommonLinkerFlags%
popd
|