forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rebuild_android.sh
executable file
·33 lines (26 loc) · 1.31 KB
/
rebuild_android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# For Android templates
export ANDROID_SDK_ROOT="$HOME/Android/Sdk";
# For incremental
export SCONS_CACHE="./scons_cache/godot_4_scons_cache_android";
mkdir -p $SCONS_CACHE
mkdir -p "./logs"
echo
echo " ==============================================="
echo " | BUILDING ANDROID ARM7, ARM64v8 |"
echo " ==============================================="
echo
# Android editor
scons -j2 platform=android precision=double production=yes target=editor arch=armv7 2>&1 | tee ./logs/godot_4_scons_android_armv7_tools_build.txt;
scons -j2 platform=android precision=double production=yes target=editor arch=arm64v8 2>&1 | tee ./logs/godot_4_scons_android_arm64v8_tools_build.txt;
# Android templates
scons -j2 platform=android precision=double target=template_debug arch=armv7 2>&1 | tee ./logs/godot_4_scons_android_armv7_template_build.txt;
scons -j2 platform=android precision=double target=template_debug arch=arm64v8 2>&1 | tee ./logs/godot_4_scons_android_arm64v8_template_build.txt;
cd platform/android/java;
./gradlew generateGodotTemplates;
./gradlew generateGodotEditor;
echo
echo " ==============================================="
echo " | DONE BUILDING ANDROID ARM7, ARM64v8 |"
echo " ==============================================="
echo