mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
IOS build scripts.
This commit is contained in:
parent
84507f9cbf
commit
1fd68f9720
@ -47,23 +47,24 @@ fi
|
|||||||
# bash /root/engine_build_scripts/android.sh "$@" 2>&1 | tee logs/android.log
|
# bash /root/engine_build_scripts/android.sh "$@" 2>&1 | tee logs/android.log
|
||||||
|
|
||||||
# OSX Build
|
# OSX Build
|
||||||
|
#docker run ${custom_envvars} \
|
||||||
|
# -v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
|
||||||
|
# -v ${project_root}:/root/project \
|
||||||
|
# -w /root/project pandemonium-osx:${img_version} \
|
||||||
|
# bash /root/engine_build_scripts/osx.sh "$@" 2>&1 | tee logs/osx.log
|
||||||
|
|
||||||
|
|
||||||
|
# iOS Build
|
||||||
docker run ${custom_envvars} \
|
docker run ${custom_envvars} \
|
||||||
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
|
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
|
||||||
-v ${project_root}:/root/project \
|
-v ${project_root}:/root/project \
|
||||||
-w /root/project pandemonium-osx:${img_version} \
|
-w /root/project pandemonium-ios:${img_version} \
|
||||||
bash /root/engine_build_scripts/osx.sh "$@" 2>&1 | tee logs/osx.log
|
bash /root/engine_build_scripts/ios.sh "$@" 2>&1 | tee logs/ios.log
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
#ios
|
|
||||||
#docker run ${custom_envvars} -v ${project_root}:/root/project -w /root/project pandemonium-ios:${img_version} scons bir_strip "$@" . 2>&1 | tee logs/bir.log
|
|
||||||
|
|
||||||
# docker run ${custom_envvars} -v ${project_root}:/root/project -i -w /root/project -t pandemonium-windows:${img_version} scons bew "$@"
|
|
||||||
|
|
||||||
# Check files
|
# Check files
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
|
||||||
cd ./bin/
|
cd ./bin/
|
||||||
|
|
||||||
files=(
|
files=(
|
||||||
@ -135,6 +136,13 @@ files=(
|
|||||||
|
|
||||||
"pandemonium.osx.opt.tools.arm64"
|
"pandemonium.osx.opt.tools.arm64"
|
||||||
"pandemonium.osx.opt.tools.x86_64"
|
"pandemonium.osx.opt.tools.x86_64"
|
||||||
|
|
||||||
|
# iOS
|
||||||
|
"libpandemonium.iphone.opt.arm64.a"
|
||||||
|
"libpandemonium.iphone.opt.debug.arm64.a"
|
||||||
|
|
||||||
|
"libpandemonium.iphone.opt.debug.x86_64.simulator.a"
|
||||||
|
"libpandemonium.iphone.opt.x86_64.simulator.a"
|
||||||
)
|
)
|
||||||
|
|
||||||
error=0
|
error=0
|
||||||
|
37
misc/build-containers/engine_build_scripts/ios.sh
Normal file
37
misc/build-containers/engine_build_scripts/ios.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export IOS_SDK="17.2"
|
||||||
|
export IOS_LIPO="/root/ioscross/arm64/bin/arm-apple-darwin11-lipo"
|
||||||
|
#export OPTIONS="platform=iphone production=yes use_lto=none"
|
||||||
|
export OPTIONS="platform=iphone"
|
||||||
|
|
||||||
|
# arm64 device
|
||||||
|
scons $OPTIONS arch=arm64 ios_simulator=no tools=no target=release_debug \
|
||||||
|
IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-" "$@"
|
||||||
|
|
||||||
|
scons $OPTIONS arch=arm64 ios_simulator=no tools=no target=release \
|
||||||
|
IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-" "$@"
|
||||||
|
|
||||||
|
# arm64 simulator
|
||||||
|
# Disabled for now as it doesn't work with cctools-port and current LLVM.
|
||||||
|
# See https://github.com/godotengine/build-containers/pull/85.
|
||||||
|
# scons platform=ios $OPTIONS arch=arm64 ios_simulator=yes target=template_debug \
|
||||||
|
# IOS_SDK_PATH="/root/ioscross/arm64_sim/SDK/iPhoneSimulator${IOS_SDK}.sdk" IOS_TOOLCHAIN_PATH="/root/ioscross/arm64_sim/" ios_triple="arm-apple-darwin11-"
|
||||||
|
# scons platform=ios $OPTIONS arch=arm64 ios_simulator=yes target=template_release \
|
||||||
|
# IOS_SDK_PATH="/root/ioscross/arm64_sim/SDK/iPhoneSimulator${IOS_SDK}.sdk" IOS_TOOLCHAIN_PATH="/root/ioscross/arm64_sim/" ios_triple="arm-apple-darwin11-"
|
||||||
|
|
||||||
|
# x86_64 simulator
|
||||||
|
scons $OPTIONS arch=x86_64 ios_simulator=yes tools=no target=release_debug \
|
||||||
|
IPHONESDK="/root/ioscross/x86_64_sim/SDK/iPhoneSimulator${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64_sim/" ios_triple="x86_64-apple-darwin11-" "$@"
|
||||||
|
|
||||||
|
scons $OPTIONS arch=x86_64 ios_simulator=yes tools=no target=release \
|
||||||
|
IPHONESDK="/root/ioscross/x86_64_sim/SDK/iPhoneSimulator${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64_sim/" ios_triple="x86_64-apple-darwin11-" "$@"
|
||||||
|
|
||||||
|
#cp bin/libgodot.ios.template_release.arm64.a /root/out/templates/libgodot.ios.a
|
||||||
|
#cp bin/libgodot.ios.template_debug.arm64.a /root/out/templates/libgodot.ios.debug.a
|
||||||
|
#$IOS_LIPO -create bin/libgodot.ios.template_release.arm64.simulator.a bin/libgodot.ios.template_release.x86_64.simulator.a -output /root/out/templates/libgodot.ios.simulator.a
|
||||||
|
#$IOS_LIPO -create bin/libgodot.ios.template_debug.arm64.simulator.a bin/libgodot.ios.template_debug.x86_64.simulator.a -output /root/out/templates/libgodot.ios.debug.simulator.a
|
||||||
|
#cp bin/libgodot.ios.template_release.x86_64.simulator.a /root/out/templates/libgodot.ios.simulator.a
|
||||||
|
#cp bin/libgodot.ios.template_debug.x86_64.simulator.a /root/out/templates/libgodot.ios.debug.simulator.a
|
||||||
|
|
Loading…
Reference in New Issue
Block a user