You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
64 lines
1.7 KiB
Bash
Executable File
64 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script gets called every time Xcode does a build or clean operation, even though it's called "RocketBuild.sh".
|
|
# Values for $ACTION: "" = building, "clean" = cleaning
|
|
|
|
# Setup Mono
|
|
source Engine/Build/BatchFiles/Mac/SetupMono.sh Engine/Build/BatchFiles/Mac
|
|
|
|
case $ACTION in
|
|
"")
|
|
echo "Building $1..."
|
|
|
|
Platform=""
|
|
AdditionalFlags="-deploy"
|
|
|
|
if [ $2 = "iphoneos" ]
|
|
then
|
|
Platform="IOS"
|
|
AdditionalFlags+=" -nocreatestub"
|
|
else
|
|
if [ $2 = "iphonesimulator" ]
|
|
then
|
|
Platform="IOS"
|
|
AdditionalFlags+=" -simulator"
|
|
AdditionalFlags+=" -nocreatestub"
|
|
else
|
|
Platform="Mac"
|
|
fi
|
|
fi
|
|
|
|
mono Engine/Binaries/DotNET/UnrealBuildTool.exe $1 $Platform $3 $AdditionalFlags "$4" -rocket
|
|
;;
|
|
"clean")
|
|
echo "Cleaning $2 $3 $4..."
|
|
|
|
Platform=""
|
|
AdditionalFlags="-clean"
|
|
|
|
if [ $3 = "iphoneos" ]
|
|
then
|
|
Platform="IOS"
|
|
AdditionalFlags+=" -nocreatestub"
|
|
else
|
|
if [ $3 = "iphonesimulator" ]
|
|
then
|
|
Platform="IOS"
|
|
AdditionalFlags+=" -simulator"
|
|
AdditionalFlags+=" -nocreatestub"
|
|
else
|
|
Platform="Mac"
|
|
fi
|
|
fi
|
|
|
|
mono Engine/Binaries/DotNET/UnrealBuildTool.exe $2 $Platform $4 $AdditionalFlags "$5" -rocket
|
|
;;
|
|
esac
|
|
|
|
ExitCode=$?
|
|
if [ $ExitCode -eq 254 ] || [ $ExitCode -eq 255 ]; then
|
|
exit 0
|
|
else
|
|
exit $ExitCode
|
|
fi
|