Files
UnrealEngineUWP/Engine/Source/ThirdParty/SpeedTree/SpeedTreeSDK-v7.0/BuildForMac.command
will damon b04df7e2dd Rebuild SpeedTree SDK as a Universal binary for macOS
- 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]
2022-04-07 21:59:21 -04:00

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.