Files
UnrealEngineUWP/Engine/Build/BatchFiles/Build.bat
Joakim Lindqvist bcb42bbe0e Removed extra call to GetDotnetPath which was caused by a incorrect merge in change 14834347
[CL 15048236 by Joakim Lindqvist in ue5-main branch]
2021-01-12 08:20:11 -04:00

33 lines
837 B
Batchfile
Executable File

@echo off
setlocal enabledelayedexpansion
REM The %~dp0 specifier resolves to the path to the directory where this .bat is located in.
REM We use this so that regardless of where the .bat file was executed from, we can change to
REM directory relative to where we know the .bat is stored.
pushd "%~dp0\..\..\Source"
rem ## Verify that dotnet is present
call "%~dp0GetDotnetPath.bat"
REM %1 is the game name
REM %2 is the platform name
REM %3 is the configuration name
set UBTPath="..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe"
IF EXIST %UBTPath% (
%UBTPath% %*
popd
REM Ignore exit codes of 2 ("ECompilationResult.UpToDate") from UBT; it's not a failure.
if "!ERRORLEVEL!"=="2" (
EXIT /B 0
)
EXIT /B !ERRORLEVEL!
) ELSE (
ECHO UnrealBuildTool.exe not found in %UBTPath%
popd
EXIT /B 999
)