You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Build.bat, Clean.bat, GenerateProjectFiles.bat [CL 15733201 by jonathan adamczewski in ue5-main branch]
33 lines
844 B
Batchfile
Executable File
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
|
|
)
|