#!/bin/bash # Eventially provide a build_profile file to reduce file size. TEMPLATE="disable_3d=yes svg=no" LTO="lto=none" # Use "lto=full" for releases. pushd godot # Use Our Custom Settings. ln -f -s ../custom.py . # Clean Prior Builds. scons --clean # Build Editor. scons platform=linuxbsd target=editor arch=x86_64 ${LTO} # Create JSON for IDE support. if [[ ! -f compile_commands.json ]]; then scons compiledb=yes fi # Build Templates. scons platform=linuxbsd target=template_release arch=x86_64 ${TEMPLATE} ${LTO} scons platform=windows target=template_release arch=x86_64 ${TEMPLATE} ${LTO} popd :<