mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-02-25 06:33:22 +03:00
- Add Mono builds for Android. - Remove now unused `MONO*_PREFIX` env variables (replaced by `mono_prefix` command line option). - Update iOS to SDK 12.4 and darwin17 for proper ARKit support. - Drop 32-bit support for iOS (armv7, x86).
50 lines
1.4 KiB
Bash
Executable File
50 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export BUILD_NAME=official
|
|
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
|
export OPTIONS="osxcross_sdk=darwin17 builtin_libpng=yes builtin_openssl=yes builtin_zlib=yes debug_symbols=no use_static_cpp=yes use_lto=yes"
|
|
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/dependencies/mono"
|
|
export TERM=xterm
|
|
export PATH=/root/osxcross/target/bin:$PATH
|
|
export OSXCROSS_ROOT=/root/osxcross
|
|
|
|
rm -rf godot
|
|
mkdir godot
|
|
cd godot
|
|
tar xf /root/godot.tar.gz --strip-components=1
|
|
|
|
cp /root/mono-glue/*.cpp modules/mono/glue/
|
|
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
|
|
|
|
$SCONS platform=osx $OPTIONS tools=yes target=release_debug
|
|
|
|
mkdir -p /root/out/tools
|
|
cp -rvp bin/* /root/out/tools
|
|
rm -rf bin
|
|
|
|
$SCONS platform=osx $OPTIONS tools=no target=release_debug
|
|
$SCONS platform=osx $OPTIONS tools=no target=release
|
|
|
|
mkdir -p /root/out/templates
|
|
cp -rvp bin/* /root/out/templates
|
|
rm -rf bin
|
|
|
|
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
|
|
|
|
mkdir -p /root/out/tools-mono
|
|
cp -rvp bin/* /root/out/tools-mono
|
|
rm -rf bin
|
|
|
|
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=no target=release_debug
|
|
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=no target=release
|
|
|
|
mkdir -p /root/out/templates-mono
|
|
cp -rvp bin/* /root/out/templates-mono
|
|
rm -rf bin
|
|
|
|
find /root/out -name config -exec cp /root/dependencies/mono/etc/config {} \;
|
|
|
|
echo "MacOS build successful"
|