sfw/build_scripts/compile_vs.bat

15 lines
546 B
Batchfile
Raw Normal View History

@echo off
if not defined DevEnvDir (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
)
rem debug: /Zi (== -g)
cl main.cpp shader.cpp material.cpp mesh.cpp mesh_instance.cpp mesh_utils.cpp texture.cpp camera.cpp application.cpp scene.cpp game_scene.cpp object_2d.cpp tile_map.cpp sprite.cpp ^
libs\glad\src\glad.c /Febin/game-vc.exe ^
/EHsc ^
/Ilibs\SDL2-VC\include ^
/Ilibs\glad\include ^
/link /LIBPATH:libs\SDL2-VC\lib SDL2.lib SDL2main.lib opengl32.lib ^
/SUBSYSTEM:CONSOLE