mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-04 02:09:44 +03:00
The in-container build scripts now get passed CLASSICAL and MONO env variables which can be used to build one or the other, or both (default). `build.sh`, `build-release.sh` and `build-templates.sh` now all expect command line switches to specify the version details, and optionally which flavor to build. For example to build Mono only: ./build.sh -v 3.2-beta4 -g master -b mono ./build-release.sh -v 3.2-beta4 -b mono ./build-templates.sh -v 3.2-beta4 -t 3.2.beta4 -b mono Also took the opportunity to do some extra cleanup, like removing unnecessary `builtin_*` options since they all default to True, even for Linux in 3.2, as well as `use_lto` and `use_static_cpp` options on platforms which don't implement them. And I improved the `build-release.sh` script to be a bit easier to read, and avoid having too many stray folders to cleanup. The build scripts should now generate the final structure that we'd use on the official mirrors, with the `mono` distribution as a subfolder of the main release folder.
45 lines
880 B
Bash
Executable File
45 lines
880 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Config
|
|
|
|
export BUILD_NAME=official
|
|
export SCONS="call scons -j4 verbose=yes warnings=no progress=no"
|
|
export OPTIONS="debug_symbols=no"
|
|
export BUILD_ARCHES="x86 x64 arm"
|
|
export ANGLE_SRC_PATH='c:\angle'
|
|
|
|
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 Server..."
|
|
|
|
for arch in ${BUILD_ARCHES}; do
|
|
for release in release release_debug; do
|
|
wine cmd /c /root/build/build.bat $arch $release
|
|
|
|
sync
|
|
wineserver -kw
|
|
|
|
mkdir -p /root/out/$arch
|
|
mv bin/* /root/out/$arch
|
|
done
|
|
done
|
|
fi
|
|
|
|
# Mono
|
|
|
|
if [ "${MONO}" == "1" ]; then
|
|
echo "No Mono support for UWP yet."
|
|
#cp /root/mono-glue/*.cpp modules/mono/glue/
|
|
#cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
|
|
fi
|
|
|
|
echo "UWP build successful"
|