commit 19835b2c65fad7772cc631fdaa25270d40ee22f9 parent d7f359066234c8954d9cd376bc2192a2520497aa Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Sep 15 01:26:14 +0100 Initial build.bat - can build mod_btt! Diffstat:
build.bat | | | 33 | +++++++++++++++++++++++++++++++++ |
diff --git a/build.bat b/build.bat @@ -0,0 +1,33 @@ +set INCLUDE=C:\Program Files\Microsoft Visual Studio 12.0\VC\include;C:\Program Files\Windows Kits\8.1\Include\shared;C:\Program Files\Windows Kits\8.1\Include\um +set LIB=C:\Program Files\Microsoft Visual Studio 12.0\VC\LIB;C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\LIB;C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86 +set PATH=C:\Program Files\Microsoft Visual Studio 12.0\VC\bin;%PATH% +set FLAGS=-I include -Z7 -Zo -W4 -Oi -Gm- -GR- -EHa- -nologo -MTd -O1 -wd4100 -wd4201 -wd4189 -wd4505 -wd4127 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_USE_MATH_DEFINES +REM -DGLAD_GLAPI_EXPORT +set EXELIBS=glfw3dll.lib user32.lib shell32.lib opengl32.lib gdi32.lib +set EXEFLAGS=%EXELIBS% %FLAGS% + +REM cl benchmark.cc -c %FLAGS% +cl btt.cc -c %FLAGS% +cl heightmap.cc -c %FLAGS% +cl gl.cc -c %FLAGS% +REM -DGLAD_GLAPI_EXPORT -DGLAD_GLAPI_EXPORT_BUILD +cl glad.cc -c %FLAGS% +cl glsl.cc -c %FLAGS% +cl gpubtt.cc -c %FLAGS% +cl immediate.cc -c %FLAGS% +cl log.cc -c %FLAGS% +cl memory_arena.cc -c %FLAGS% +cl mod_btt.cc -c %FLAGS% +cl lz4.cc -c %FLAGS% +cl lz4hc.cc -c %FLAGS% +cl skybox.cc -c %FLAGS% +cl -Tpstb_image.h -c %FLAGS% -DSTB_IMAGE_IMPLEMENTATION +cl -Tpstb_truetype.h -c %FLAGS% -DSTB_TRUETYPE_IMPLEMENTATION + +REM -DGLAD_GLAPI_EXPORT +cl -LD %FLAGS% mod_btt.obj btt.obj gpubtt.obj glsl.obj memory_arena.obj glad.obj heightmap.obj skybox.obj log.obj immediate.obj stb_image.obj -Femod_btt.dll -link -EXPORT:game_init -EXPORT:game_frame + +cl main.cc gl.obj glad.obj log.obj memory_arena.obj %EXEFLAGS% -Femedfall.exe +cl pp.cc stb_image.obj lz4.obj lz4hc.obj %EXEFLAGS% + +pause