mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-05 06:11:49 +03:00
32 lines
668 B
Bash
Executable File
32 lines
668 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Config
|
|
|
|
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
|
export OPTIONS="debug_symbols=no use_static_cpp=no"
|
|
export TERM=xterm
|
|
export DISPLAY=:0
|
|
export PATH="${GODOT_SDK_LINUX_X86_64}/bin:${BASE_PATH}"
|
|
|
|
rm -rf godot
|
|
mkdir godot
|
|
cd godot
|
|
tar xf ../godot.tar.gz --strip-components=1
|
|
|
|
# Mono
|
|
|
|
if [ "${MONO}" == "1" ]; then
|
|
echo "Building and generating Mono glue..."
|
|
|
|
dotnet --info
|
|
|
|
${SCONS} platform=linuxbsd ${OPTIONS} target=editor module_mono_enabled=yes
|
|
|
|
rm -rf /root/mono-glue/*
|
|
bin/godot.linuxbsd.editor.x86_64.mono --headless --generate-mono-glue /root/mono-glue
|
|
fi
|
|
|
|
echo "Mono glue generated successfully"
|