File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,19 @@ if [ "${build_classical}" == "1" ]; then
203203 cd ..
204204 rm -rf ios_xcode
205205
206+
207+ # # tvOS (Classical) ##
208+
209+ rm -rf tvos_xcode
210+ cp -r git/misc/dist/tvos_xcode tvos_xcode
211+ cp out/tvos/templates/libgodot.tvos.opt.fat tvos_xcode/libgodot.tvos.release.fat.a
212+ cp out/tvos/templates/libgodot.tvos.opt.debug.fat tvos_xcode/libgodot.tvos.debug.fat.a
213+ chmod +x tvos_xcode/libgodot.tvos.*
214+ cd tvos_xcode
215+ zip -q -9 -r " ${templatesdir} /tvos.zip" *
216+ cd ..
217+ rm -rf tvos_xcode
218+
206219 # # UWP (Classical) ##
207220
208221 if [ ! -d " angle" ]; then
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ # Config
6+
7+ export BUILD_NAME=official
8+ export SCONS=" scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
9+ export OPTIONS=" debug_symbols=no"
10+ export OPTIONS_MONO=" module_mono_enabled=yes mono_static=yes"
11+ export TERM=xterm
12+
13+ export TVOS_SDK=" 14.2"
14+ export TVOS_LIPO=" /root/ioscross/arm64/bin/arm-apple-darwin11-lipo"
15+
16+ rm -rf godot
17+ mkdir godot
18+ cd godot
19+ tar xf /root/godot.tar.gz --strip-components=1
20+
21+ # Classical
22+
23+ if [ " ${CLASSICAL} " == " 1" ]; then
24+ echo " Starting classical build for tvOS..."
25+
26+ $SCONS platform=tvos $OPTIONS arch=arm64 tools=no target=release_debug \
27+ TVOSSDK=" /root/ioscross/arm64/SDK/AppleTVOS${TVOS_SDK} .sdk" TVOSPATH=" /root/ioscross/arm64/" tvos_triple=" arm-apple-darwin11-"
28+ $SCONS platform=tvos $OPTIONS arch=arm64 tools=no target=release \
29+ TVOSSDK=" /root/ioscross/arm64/SDK/AppleTVOS${TVOS_SDK} .sdk" TVOSPATH=" /root/ioscross/arm64/" tvos_triple=" arm-apple-darwin11-"
30+
31+ # tvOS Simulator
32+
33+ $SCONS platform=tvos $OPTIONS arch=x86_64 simulator=yes tools=no target=release_debug \
34+ TVOSSDK=" /root/ioscross/x86_64/SDK/AppleTVSimulator${TVOS_SDK} .sdk" TVOSPATH=" /root/ioscross/x86_64/" tvos_triple=" x86_64-apple-darwin11-"
35+ $SCONS platform=tvos $OPTIONS arch=x86_64 simulator=yes tools=no target=release \
36+ TVOSSDK=" /root/ioscross/x86_64/SDK/AppleTVSimulator${TVOS_SDK} .sdk" TVOSPATH=" /root/ioscross/x86_64/" tvos_triple=" x86_64-apple-darwin11-"
37+
38+ mkdir -p /root/out/templates
39+ $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
40+ $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
41+ fi
42+
43+ echo " tvOS build successful"
Original file line number Diff line number Diff line change @@ -194,6 +194,9 @@ ${podman_run} -v ${basedir}/build-android:/root/build -v ${basedir}/out/android:
194194mkdir -p ${basedir} /out/ios
195195${podman_run} -v ${basedir} /build-ios:/root/build -v ${basedir} /out/ios:/root/out localhost/godot-ios:${img_version} bash build/build.sh 2>&1 | tee ${basedir} /out/logs/ios
196196
197+ mkdir -p ${basedir} /out/tvos
198+ ${podman_run} -v ${basedir} /build-tvos:/root/build -v ${basedir} /out/tvos:/root/out localhost/godot-tvos:${img_version} bash build/build.sh 2>&1 | tee ${basedir} /out/logs/tvos
199+
197200mkdir -p ${basedir} /out/server/x64
198201${podman_run} -v ${basedir} /build-server:/root/build -v ${basedir} /out/server/x64:/root/out localhost/godot-ubuntu-64:${img_version} bash build/build.sh 2>&1 | tee ${basedir} /out/logs/server
199202
You can’t perform that action at this time.
0 commit comments