medfall

Log | Files | Refs

build.bat (4353B)


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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@ECHO off

set VC=%PROGRAMFILES(X86)%\Microsoft Visual Studio 12.0\VC
set KIT=%PROGRAMFILES(X86)%\Windows Kits\8.1
set DX=%PROGRAMFILES(X86)%\Microsoft DirectX SDK (June 2010)

set INCLUDE=%VC%\include;%KIT%\Include\shared;%DX%\Include;%KIT%\Include\um;%KIT%\Include\winrt

REM 64bit
REM set LIB=%VC%\lib\amd64;%KIT%\lib\winv6.3\um\x64
REM set PATH=%VC%\bin\amd64\;%PATH%

REM 32bit
set LIB=%VC%\LIB;%VC%\ATLMFC\LIB;%KIT%\lib\winv6.3\um\x86
set PATH=%VC%\bin;%PATH%

set FLAGS=-I include -Z7 -Zo -W4 -Oi -Gm- -GR- -EHa- -nologo -MTd -Od -wd4100 -wd4201 -wd4189 -wd4351 -wd4505 -wd4127 -wd4530 -wd4702 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_USE_MATH_DEFINES -DWIN32_LEAN_AND_MEAN -I .
set EXELIBS=glfw.lib user32.lib shell32.lib opengl32.lib gdi32.lib Ws2_32.lib
set EXEFLAGS=%EXELIBS% %FLAGS%
set COMMONOBJS=log.obj memory_arena.obj work_queue.obj stb_truetype.obj ggformat.obj strlcat.obj strlcpy.obj strtonum.obj profiler.obj stats.obj rng\well512.obj

cl btt.cc -c %FLAGS%
cl heightmap.cc -c %FLAGS%
cl ggformat.cc -c %FLAGS%
cl gl.cc -c %FLAGS%
cl glad.cc -c %FLAGS%
cl gpubtt.cc -c %FLAGS%
cl http.cc -c %FLAGS%
cl hm.cc -c %FLAGS%
cl immediate.cc -c %FLAGS%
cl log.cc -c %FLAGS%
cl memory_arena.cc -c %FLAGS%
cl lz4.cc -c %FLAGS%
cl lz4hc.cc -c %FLAGS%
cl mixer.cc -c %FLAGS%
cl profiler.cc -c %FLAGS%
cl renderer.cc -c %FLAGS%
cl sha2.cc -c %FLAGS% -wd4244
cl skybox.cc -c %FLAGS%
cl stats.cc -c %FLAGS%
cl -Tpstb_image.h -c %FLAGS% -DSTB_IMAGE_IMPLEMENTATION -wd4244
cl -Tpstb_truetype.h -c %FLAGS% -DSTB_TRUETYPE_IMPLEMENTATION
cl strlcat.cc -c %FLAGS%
cl strlcpy.cc -c %FLAGS%
cl strtonum.cc -c %FLAGS%
cl terrain_manager.cc -c %FLAGS%
cl text_renderer.cc -c %FLAGS%
cl wave.cc -c %FLAGS%
cl win32_audio_output.cc -c %FLAGS%
cl work_queue.cc -c %FLAGS%
cl rng\well512.cc -c %FLAGS% -Forng\well512.obj

cl libs\imgui\imgui.cc -c %FLAGS% -Folibs\imgui\imgui.obj
cl libs\imgui\imgui_draw.cc -c %FLAGS% -Folibs\imgui\imgui_draw.obj
cl libs\imgui\imgui_impl_glfw_gl3.cc -c %FLAGS% -Folibs\imgui\imgui_impl_glfw_gl3.obj
lib -OUT:imgui.lib libs\imgui\imgui.obj libs\imgui\imgui_draw.obj libs\imgui\imgui_impl_glfw_gl3.obj

cl libs\glfw\src\context.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\context.obj
cl libs\glfw\src\init.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\init.obj -wd4152
cl libs\glfw\src\input.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\input.obj -wd4152
cl libs\glfw\src\monitor.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\monitor.obj -wd4152
cl libs\glfw\src\vulkan.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\vulkan.obj
cl libs\glfw\src\window.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\window.obj -wd4152
cl libs\glfw\src\win32_init.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\win32_init.obj -wd4244
cl libs\glfw\src\win32_monitor.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\win32_monitor.obj
cl libs\glfw\src\win32_window.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\win32_window.obj -wd4204
cl libs\glfw\src\win32_joystick.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\win32_joystick.obj
cl libs\glfw\src\win32_time.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\win32_time.obj
cl libs\glfw\src\win32_tls.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\win32_tls.obj
cl libs\glfw\src\wgl_context.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\wgl_context.obj
cl libs\glfw\src\egl_context.cc -c -D_GLFW_WIN32 -TC %FLAGS% -Folibs\glfw\src\egl_context.obj
lib -OUT:glfw.lib libs\glfw\src\context.obj libs\glfw\src\init.obj libs\glfw\src\input.obj libs\glfw\src\monitor.obj libs\glfw\src\vulkan.obj libs\glfw\src\window.obj libs\glfw\src\win32_init.obj libs\glfw\src\win32_monitor.obj libs\glfw\src\win32_window.obj libs\glfw\src\win32_joystick.obj libs\glfw\src\win32_time.obj libs\glfw\src\win32_tls.obj libs\glfw\src\wgl_context.obj libs\glfw\src\egl_context.obj

cl main.cc gl.obj glad.obj renderer.obj immediate.obj text_renderer.obj hm.obj terrain_manager.obj heightmap.obj btt.obj gpubtt.obj lz4.obj skybox.obj http.obj -DSTATIC_GAME %COMMONOBJS% %EXEFLAGS% -Femedfall.exe
cl pp.cc heightmap.obj stb_image.obj lz4.obj lz4hc.obj %COMMONOBJS% %EXEFLAGS%
cl launcher\main.cc http.obj sha2.obj gl.obj glad.obj renderer.obj imgui.lib %COMMONOBJS% %EXEFLAGS% -Felauncher.exe
cl audio.cc win32_audio_output.obj mixer.obj wave.obj Ole32.lib %COMMONOBJS% %EXEFLAGS% -Feaudio.exe