From c9f4257863fc8d2edb5b253e4a5d8bb5f5a561a0 Mon Sep 17 00:00:00 2001 From: Ilia Nemankov Date: Wed, 26 Aug 2020 16:05:22 +0200 Subject: [PATCH 1/2] Add option for prepare UE only --- integration/Build.bat | 16 ++++++++++++++++ .../Scripts/BuildUnrealImplementation.bat | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/integration/Build.bat b/integration/Build.bat index 37f96de..aba0205 100644 --- a/integration/Build.bat +++ b/integration/Build.bat @@ -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= @@ -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" ( @@ -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 @@ -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 @@ -408,6 +418,10 @@ FOR %%s IN (2015, 2017) DO ( ) ) ) + + IF DEFINED Build_PrepareUE ( + CALL :runBuildProcess %~1 Development PrepareUE + ) EXIT /B 0 @@ -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 diff --git a/integration/Scripts/BuildUnrealImplementation.bat b/integration/Scripts/BuildUnrealImplementation.bat index d536b3c..8aefb2b 100644 --- a/integration/Scripts/BuildUnrealImplementation.bat +++ b/integration/Scripts/BuildUnrealImplementation.bat @@ -61,6 +61,11 @@ IF NOT DEFINED Build_CleanOnly ( @ECHO Setup UnrealEngine... CALL Scripts\HelperUnrealSetup.bat IF ERRORLEVEL 1 GOTO :error + + IF DEFINED Build_PrepareUE ( + @ECHO UnrealEngine was prepared + GOTO :done + ) ) From 3baf70c1b6ff27aa3f6bfc8934c66898a2c1445e Mon Sep 17 00:00:00 2001 From: Ilia Nemankov Date: Wed, 26 Aug 2020 17:11:17 +0200 Subject: [PATCH 2/2] Configure UE only if folder with UE doesn't exists --- .../Scripts/BuildUnrealImplementation.bat | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/integration/Scripts/BuildUnrealImplementation.bat b/integration/Scripts/BuildUnrealImplementation.bat index 8aefb2b..1febfb7 100644 --- a/integration/Scripts/BuildUnrealImplementation.bat +++ b/integration/Scripts/BuildUnrealImplementation.bat @@ -44,27 +44,27 @@ 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 - - IF DEFINED Build_PrepareUE ( - @ECHO UnrealEngine was prepared - GOTO :done + @ECHO: + @ECHO Setup UnrealEngine... + CALL Scripts\HelperUnrealSetup.bat + IF ERRORLEVEL 1 GOTO :error + + IF DEFINED Build_PrepareUE ( + @ECHO UnrealEngine was prepared + GOTO :done + ) ) )