blob: 9ff1d0fb2c169717ea9e881ad9c81ba7b8f38825 (
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
27
28
29
30
31
|
@echo off
set STATIC=1
set LIB_FILES=dependencies/bin/*
REM /Zi /O2
set OPTIMIZATION=/O2
set DEBUG=0
set IMGUI=1
set ARM=0
set PERF=0
set STABLE=0
if %STATIC%==1 ( set STATIC_LIB_NAMES=version.lib ole32.lib oleaut32.lib advapi32.lib setupapi.lib imm32.lib gdi32.lib winmm.lib user32.lib shell32.lib kernel32.lib shell32.lib bcrypt.lib )
REM what did we need glew for again? /Icurl
set INCLUDES=/I.. /Isrc /Isrc/include /Idependencies/include /Idependencies/include/imgui /Idependencies/src /Ilib/glad/include /Idependencies/include/SDL
set IMGUI_FILES=dependencies\src\imgui\imgui_impl_sdl.cpp dependencies\src\imgui\imgui_impl_opengl3.cpp dependencies\src\imgui\imgui*.cpp
set WARNING_FLAGS=/W2 /wd4805 /wd4477 /wd4244 /wd4305
set PREPROCESSORS="/DWINDOWS=1"
if %DEBUG%==1 ( set PREPROCESSORS=%PREPROCESSORS% "/DDEBUG=1" )
if %PERF%==1 ( set PREPROCESSORS=%PREPROCESSORS% "/DPERF=1" )
if %STABLE%==1 ( set PREPROCESSORS=%PREPROCESSORS% "/DSTABLE=1" )
cl /nologo %OPTIMIZATION% /MD %INCLUDES% src/imgui_helper_internal.cpp /Fobin/ /c
if %IMGUI%==1 ( cl /nologo %OPTIMIZATION% /MD %INCLUDES% %IMGUI_FILES% /Fobin/ /c )
cl /nologo %OPTIMIZATION% /MD /I.. /Idependencies/include dependencies/src/glad.c /Fobin/ /c
cl /c /nologo /Zi /MT %WARNING_FLAGS% %PREPROCESSORS% %INCLUDES% src/main.cpp /Fobin/
link /nologo bin/*.obj %LIB_FILES% %STATIC_LIB_NAMES% /OUT:bin/real2d.exe /subsystem:console
|