Files
UnrealEngineUWP/Engine/Build/BatchFiles/Linux/GenerateProjectFiles.sh
brandon schaefer b518ac8185 #ROBOMERGE-AUTHOR: brandon.schaefer
Set our location to Linux/Mac GenerateProject.sh if we are not running from that location

#jira UE-59127, UE-57928
[FYI] Arciel.Rekman, Anthony.Bills, Michael.Trepka

#ROBOMERGE-SOURCE: CL 4101278 in //UE4/Release-4.20/...
#ROBOMERGE-BOT: RELEASE (Release-4.20 -> Release-Staging-4.20)

[CL 4101282 by brandon schaefer in Staging-4.20 branch]
2018-05-30 17:00:04 -04:00

31 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
echo
echo Setting up Unreal Engine 4 project files...
echo
# If ran from someone 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're missing some files that are required in order to generate projects. Please check that you've 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/Mac directory.
exit 1
fi
source "$BASE_PATH/SetupMono.sh" $BASE_PATH
if [ -f "$BASE_PATH/../../../Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj" ]; then
xbuild "$BASE_PATH/../../../Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj" /property:Configuration="Development" /p:TargetFrameworkVersion=v4.5 /verbosity:quiet /nologo
fi
# pass all parameters to UBT
mono "$BASE_PATH/../../../Binaries/DotNET/UnrealBuildTool.exe" -projectfiles "$@"