Files
UnrealEngineUWP/Engine/Build/BatchFiles/Build.bat
jonathan adamczewski a64f00151e UnrealBuildTool.exe -> dotnet UnrealBuildTool.dll (1/n)
Build.bat, Clean.bat, GenerateProjectFiles.bat

[CL 15733201 by jonathan adamczewski in ue5-main branch]
2021-03-17 21:12:07 -04:00

33 lines
844 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.dll"
IF EXIST %UBTPath% (
dotnet %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.dll not found in %UBTPath%
popd
EXIT /B 999
)