mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-05 06:11:49 +03:00
Add support for experimental .NET builds (GDExtension) (#136)
This is eventually meant to be unified with the "classical" builds, but for the initial testing we start with a dedicated "dotnet" build. Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
@@ -4,11 +4,12 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
# Debug symbols are enabled for the Android builds so we can generate a separate debug symbols file.
|
||||
# Debug symbols are enabled for the Android builds so we can generate a separate debug symbols file.
|
||||
# Gradle will strip them out of the final artifacts.
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no redirect_build_objects=no"
|
||||
export OPTIONS="production=yes debug_symbols=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes"
|
||||
export OPTIONS_DOTNET="module_dotnet_enabled=yes"
|
||||
export TERM=xterm
|
||||
|
||||
prepare_source() {
|
||||
@@ -143,4 +144,34 @@ if [ "${MONO}" == "1" ]; then
|
||||
cp bin/godot-lib.template_release.aar /root/out/templates-mono/
|
||||
fi
|
||||
|
||||
# .NET
|
||||
|
||||
if [ "${DOTNET}" == "1" ]; then
|
||||
echo "Starting .NET build for Android..."
|
||||
|
||||
prepare_source
|
||||
|
||||
$SCONS platform=android arch=arm32 $OPTIONS $OPTIONS_DOTNET target=template_debug
|
||||
$SCONS platform=android arch=arm32 $OPTIONS $OPTIONS_DOTNET target=template_release
|
||||
|
||||
$SCONS platform=android arch=arm64 $OPTIONS $OPTIONS_DOTNET target=template_debug
|
||||
$SCONS platform=android arch=arm64 $OPTIONS $OPTIONS_DOTNET target=template_release
|
||||
|
||||
$SCONS platform=android arch=x86_32 $OPTIONS $OPTIONS_DOTNET target=template_debug
|
||||
$SCONS platform=android arch=x86_32 $OPTIONS $OPTIONS_DOTNET target=template_release
|
||||
|
||||
$SCONS platform=android arch=x86_64 $OPTIONS $OPTIONS_DOTNET target=template_debug
|
||||
$SCONS platform=android arch=x86_64 $OPTIONS $OPTIONS_DOTNET target=template_release
|
||||
|
||||
pushd platform/android/java
|
||||
./gradlew generateGodotMonoTemplates
|
||||
popd
|
||||
|
||||
mkdir -p /root/out/templates-dotnet
|
||||
cp bin/android_source.zip /root/out/templates-dotnet/
|
||||
cp bin/android_monoDebug.apk /root/out/templates-dotnet/android_debug.apk
|
||||
cp bin/android_monoRelease.apk /root/out/templates-dotnet/android_release.apk
|
||||
cp bin/godot-lib.template_release.aar /root/out/templates-dotnet/
|
||||
fi
|
||||
|
||||
echo "Android build successful"
|
||||
|
||||
Reference in New Issue
Block a user