-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.bat
15 lines (15 loc) · 824 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86
) else (
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
) else (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
)
)
set compilerflags=/Od /Zi /EHsc /std:c++latest /I include
set linkerflags=/OUT:bin\main.exe
set libs=kernel32.lib user32.lib advapi32.lib
cl.exe %compilerflags% src\*.cpp %libs% /link %linkerflags%
del bin\*.ilk *.obj *.pdb