You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* If invoked from VS2022, use visual studio to build UnrealBuildTool to prevent unnecessary rebuilds * If invoked from VS2019 or on the command line without visual studio, use bundled dotnet to build * Deduplicate all logic into Build.bat, and have Clean.bat and Rebuild.bat call Build.bat with either -Clean or -Rebuild * Print entire dotnet version * Replace various calls to dotnet msbuild with dotnet build * Update old UE4 comments #jira UE-165754 #rb ? [CL 22387871 by joe kirchoff in ue5-main branch]
38 lines
1.5 KiB
Bash
Executable File
38 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
echo
|
|
echo Setting up Unreal Engine project files...
|
|
echo
|
|
|
|
# If ran from somewhere other then the script location we'll have the full base path
|
|
BASE_PATH="`dirname "$0"`"
|
|
|
|
# this is located inside an extra 'Linux' path unlike the Windows variant.
|
|
|
|
if [ ! -d "$BASE_PATH/../../../Binaries/DotNET" ]; then
|
|
echo GenerateProjectFiles ERROR: It looks like you are missing some files that are required in order to generate projects. Please check that you have downloaded and unpacked the engine source code, binaries, content and third-party dependencies before running this script.
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d "$BASE_PATH/../../../Source" ]; then
|
|
echo GenerateProjectFiles ERROR: This script file does not appear to be located inside the Engine/Build/BatchFiles/Linux directory.
|
|
exit 1
|
|
fi
|
|
|
|
source "$BASE_PATH/SetupEnvironment.sh" -dotnet "$BASE_PATH"
|
|
|
|
# If this is a source drop of the engine make sure that the UnrealBuildTool is up-to-date
|
|
if [ ! -f "$BASE_PATH/../../InstalledBuild.txt" ]; then
|
|
if [ -f "$BASE_PATH/../../../Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj" ]; then
|
|
dotnet build "$BASE_PATH/../../../Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj" -c Development -v quiet
|
|
if [ $? -ne 0 ]; then
|
|
echo GenerateProjectFiles ERROR: Failed to build UnrealBuildTool
|
|
exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# pass all parameters to UBT
|
|
dotnet "$BASE_PATH/../../../Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll" -projectfiles "$@"
|