You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Updating references to use dotnet * Add new RunDotnet scripts * Removing Mono sh scripts and references to them #rnx #jira UE-153293 #rb josh.adams, zack.neyland, brandon.schaefer [CL 26737744 by Ryan Hummer in ue5-main branch]
39 lines
1.3 KiB
Bash
Executable File
39 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright Epic Games, Inc. All Rights Reserved.
|
|
# This script gets can be used to build and clean individual projects using UnrealBuildTool
|
|
|
|
set -e
|
|
|
|
cd "`dirname "$0"`/../../../.."
|
|
|
|
# Setup Environment and dotnet
|
|
source Engine/Build/BatchFiles/Linux/SetupEnvironment.sh -dotnet Engine/Build/BatchFiles/Linux
|
|
|
|
# Skip UBT and SCW compile step if this is an installed build.
|
|
if [ ! -f Engine/Build/InstalledBuild.txt ]; then
|
|
# use two for-loops here as -buildscw depends on UBT being built.
|
|
# So if -buildscw then -buildubt was passed it would fail/use out of date UBT
|
|
for i in "$@" ; do
|
|
# First make sure that the UnrealBuildTool is up-to-date
|
|
if [[ $i == "-buildubt" ]] ; then
|
|
if ! dotnet build Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj -c Development -v quiet; then
|
|
echo "Failed to build the build tool (UnrealBuildTool)"
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
for i in "$@" ; do
|
|
# build SCW if specified
|
|
if [[ $i == "-buildscw" ]] ; then
|
|
echo Building ShaderCompileWorker...
|
|
dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll ShaderCompileWorker Linux Development
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
|
|
echo Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll "$@"
|
|
dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll "$@"
|
|
exit $?
|