You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- on macOS Catalina 10.15.7 - with Xcode 12.4 - as a universal binary (arm64+x86_64) - Add BuildForMac.command build script. #rb self #jira UE-145030 #rnx #preflight n/a [CL 19683553 by will damon in ue5-main branch]
27 lines
917 B
Bash
Executable File
27 lines
917 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
UE_THIRD_PARTY_LOCATION=`cd $(pwd)/..; pwd`
|
|
|
|
UE_MODULE_LOCATION=`pwd`
|
|
|
|
SOURCE_LOCATION="$UE_MODULE_LOCATION"
|
|
BUILD_LOCATION="$UE_MODULE_LOCATION/Intermediate"
|
|
|
|
rm -rf $BUILD_LOCATION
|
|
|
|
mkdir $BUILD_LOCATION
|
|
pushd $BUILD_LOCATION
|
|
|
|
xcodebuild clean -scheme=SpeedTreeCore -project $SOURCE_LOCATION/Source/Core/MacOSX/SpeedTreeCore.xcodeproj -configuration Debug -xcconfig "$SOURCE_LOCATION/Source/Core/MacOSX/XcodeConfig"
|
|
xcodebuild build -scheme=SpeedTreeCore -project $SOURCE_LOCATION/Source/Core/MacOSX/SpeedTreeCore.xcodeproj -configuration Debug -xcconfig "$SOURCE_LOCATION/Source/Core/MacOSX/XcodeConfig"
|
|
xcodebuild build -scheme=SpeedTreeCore -project $SOURCE_LOCATION/Source/Core/MacOSX/SpeedTreeCore.xcodeproj -configuration Release -xcconfig "$SOURCE_LOCATION/Source/Core/MacOSX/XcodeConfig"
|
|
|
|
# Remove temporary build data
|
|
rm -rf "$SOURCE_LOCATION/Lib/MacOSX/XCBuildData"
|
|
|
|
popd
|
|
|
|
echo Done.
|