Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions integration/Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SET Build_2017=
SET Build_Amf=
SET Build_Standard=
SET Build_Stitch=
SET Build_PrepareUE=
SET Build_Development=
SET Build_Shipping=
SET Build_BluePrints=
Expand Down Expand Up @@ -90,6 +91,8 @@ FOR %%x IN (%*) DO (
SET Build_Stitch=1
) ELSE IF /I "%%~x"=="Standard" (
SET Build_Standard=1
) ELSE IF /I "%%~x"=="PrepareUE" (
SET Build_PrepareUE=1
) ELSE IF /I "%%~x"=="Development" (
SET Build_Development=1
) ELSE IF /I "%%~x"=="Shipping" (
Expand Down Expand Up @@ -257,6 +260,12 @@ IF NOT DEFINED Build_SourceOrigin IF NOT DEFINED Build_SourceClone (
)
)

IF DEFINED Build_PrepareUE (
SET Build_Standard=
SET Build_Amf=
SET Build_Stitch=
)

@ECHO:
SET Build_4_17
SET Build_4_18
Expand All @@ -273,6 +282,7 @@ SET Build_2017
SET Build_Amf
SET Build_Standard
SET Build_Stitch
SET Build_PrepareUE
SET Build_Development
SET Build_Shipping
SET Build_BluePrints
Expand Down Expand Up @@ -408,6 +418,10 @@ FOR %%s IN (2015, 2017) DO (
)
)
)

IF DEFINED Build_PrepareUE (
CALL :runBuildProcess %~1 Development PrepareUE
)

EXIT /B 0

Expand All @@ -424,6 +438,8 @@ FOR %%s IN (2015, 2017) DO (
SET AMF_VERSION=!UE_VERSION!
) ELSE IF ["%~3"] == ["Stitch"] (
SET STITCH_VERSION=!UE_VERSION!
) ELSE IF ["%~3"] == ["PrepareUE"] (
REM only prepare UE for optimize traffic
) ELSE (
@ECHO Error! unsupported renderType
EXIT /B 1
Expand Down
33 changes: 19 additions & 14 deletions integration/Scripts/BuildUnrealImplementation.bat
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,28 @@ IF NOT DEFINED Build_CleanOnly (
@ECHO No UnrealEngine folder found, create it
MKDIR "%UnrealHome%"
IF ERRORLEVEL 1 GOTO :error
)

@ECHO:
@ECHO Clone UnrealEngine...
CALL Scripts\HelperUnrealClone.bat
IF ERRORLEVEL 1 GOTO :error
@ECHO:
@ECHO Clone UnrealEngine...
CALL Scripts\HelperUnrealClone.bat
IF ERRORLEVEL 1 GOTO :error

@ECHO:
@ECHO Setup MS_BUILD_EXE...
REM Must be after cloning
CALL Scripts\UtilitySetupMSBuildExe.bat
IF ERRORLEVEL 1 GOTO :error
@ECHO:
@ECHO Setup MS_BUILD_EXE...
REM Must be after cloning
CALL Scripts\UtilitySetupMSBuildExe.bat
IF ERRORLEVEL 1 GOTO :error

@ECHO:
@ECHO Setup UnrealEngine...
CALL Scripts\HelperUnrealSetup.bat
IF ERRORLEVEL 1 GOTO :error
@ECHO:
@ECHO Setup UnrealEngine...
CALL Scripts\HelperUnrealSetup.bat
IF ERRORLEVEL 1 GOTO :error

IF DEFINED Build_PrepareUE (
@ECHO UnrealEngine was prepared
GOTO :done
)
)

)

Expand Down