-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildDefaultGame.bat
More file actions
38 lines (29 loc) · 1.31 KB
/
BuildDefaultGame.bat
File metadata and controls
38 lines (29 loc) · 1.31 KB
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
@echo off
set EG_GAME_BUILD=DeGame
rem This will be different depending on the installation of Visual Studio
echo Checking if MSBuild is available
MSBuild /version
if (%ERRORLEVEL%==0) goto BUILD_START
echo MSBuild was not available, attempting to use default installation of Visual Sutdio 2022 Community Edition
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_x64
MSBuild /version
if (%ERRORLEVEL%==0) goto NO_MS_BUILD
:BUILD_START
set EGTARGETPLATFORM=Default
set PATH=.\_BUILD\bin;.\core\BuildTools\bin;%PATH%
MSBuild EG.sln /nologo -t:restore -p:RestorePackagesConfig=true
MSBuild EG.sln /nologo /v:m -t:"Engine\PreBuild" -p:Configuration=Release;Platform=x64
MSBuild EG.sln /nologo /v:m -t:"Games\%EG_GAME_BUILD%" -p:Configuration=Release;Platform=x64
MSBuild EG.sln /nologo /v:m -t:"Games\%EG_GAME_BUILD%" -p:Configuration=Debug;Platform=x64
MSBuild EG.sln /nologo /v:m -t:"Games\%EG_GAME_BUILD%" -p:Configuration=ReleaseEditor;Platform=x64
MSBuild EG.sln /nologo /v:m -t:"Games\%EG_GAME_BUILD%" -p:Configuration=DebugEditor;Platform=x64
egmake2_x64 DATA
egmake2_x64 CREATE_GAME_INI
egmake2_x64 BUILD_DIST -game "%EG_GAME_BUILD%" -root "_BUILD"
echo Build Complete.
goto DONE
:NO_MS_BUILD
echo MSBuild was not available. The build is not possible.
goto DONE
:DONE
pause