-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Config | ||
|
||
export BUILD_NAME=official | ||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no" | ||
export OPTIONS="debug_symbols=no" | ||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes" | ||
export TERM=xterm | ||
|
||
export TVOS_SDK="14.2" | ||
export TVOS_LIPO="/root/ioscross/arm64/bin/arm-apple-darwin11-lipo" | ||
|
||
rm -rf godot | ||
mkdir godot | ||
cd godot | ||
tar xf /root/godot.tar.gz --strip-components=1 | ||
|
||
# Classical | ||
|
||
if [ "${CLASSICAL}" == "1" ]; then | ||
echo "Starting classical build for tvOS..." | ||
|
||
$SCONS platform=tvos $OPTIONS arch=arm64 tools=no target=release_debug \ | ||
TVOSSDK="/root/ioscross/arm64/SDK/AppleTVOS${TVOS_SDK}.sdk" TVOSPATH="/root/ioscross/arm64/" tvos_triple="arm-apple-darwin11-" | ||
$SCONS platform=tvos $OPTIONS arch=arm64 tools=no target=release \ | ||
TVOSSDK="/root/ioscross/arm64/SDK/AppleTVOS${TVOS_SDK}.sdk" TVOSPATH="/root/ioscross/arm64/" tvos_triple="arm-apple-darwin11-" | ||
|
||
# tvOS Simulator | ||
|
||
$SCONS platform=tvos $OPTIONS arch=x86_64 simulator=yes tools=no target=release_debug \ | ||
TVOSSDK="/root/ioscross/x86_64/SDK/AppleTVSimulator${TVOS_SDK}.sdk" TVOSPATH="/root/ioscross/x86_64/" tvos_triple="x86_64-apple-darwin11-" | ||
$SCONS platform=tvos $OPTIONS arch=x86_64 simulator=yes tools=no target=release \ | ||
TVOSSDK="/root/ioscross/x86_64/SDK/AppleTVSimulator${TVOS_SDK}.sdk" TVOSPATH="/root/ioscross/x86_64/" tvos_triple="x86_64-apple-darwin11-" | ||
|
||
mkdir -p /root/out/templates | ||
$TVOS_LIPO -create bin/libgodot.tvos.opt.arm64.a bin/libgodot.tvos.opt.x86_64.simulator.a -output /root/out/templates/libgodot.tvos.opt.fat | ||
$TVOS_LIPO -create bin/libgodot.tvos.opt.debug.arm64.a bin/libgodot.tvos.opt.debug.x86_64.simulator.a -output /root/out/templates/libgodot.tvos.opt.debug.fat | ||
fi | ||
|
||
echo "tvOS build successful" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters