-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.bat
18 lines (12 loc) · 811 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@ECHO OFF
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
SET warnings=/W4 /wd4505 /wd4100
SET includesCL=/Ithird_party /Ithird_party/Include
SET definesCL=/D DEBUG /D GAME /D _CRT_SECURE_NO_WARNINGS
SET linksCL=/link /LIBPATH:third_party/Lib user32.lib Shell32.lib opengl32.lib gdi32.lib freetype.lib ole32.lib
set crazy_date_thing=%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%
del *.pdb > NUL 2> NUL
@REM game.dll
cl /nologo /std:c++20 %warnings% /Zc:strictStrings- /LD /FC src/game.cpp /Z7 %definesCL% /link /PDB:"game_%crazy_date_thing%.pdb" /INCREMENTAL:NO
@REM base executable
cl /nologo /std:c++20 %warnings% /Zc:strictStrings- /FC src/win32_platform.cpp /Z7 /FevsClone.exe %definesCL% %includesCL% %linksCL% /INCREMENTAL:NO