Browse Source

Update compiling_for_android.rst (#6115)

* Update compiling_for_android.rst

* Apply suggestions from code review

* Update compiling_for_android.rst

Co-authored-by: Hugo Locurcio <[email protected]>
AndyAnon14 2 years ago
parent
commit
8bb2b02eda
1 changed files with 44 additions and 0 deletions
  1. 44 0
      development/compiling/compiling_for_android.rst

+ 44 - 0
development/compiling/compiling_for_android.rst

@@ -206,6 +206,50 @@ file in the ``bin\`` directory of your Godot source folder, so that the
 next time you build you will automatically have the custom templates
 referenced.
 
+Building the Godot editor
+-------------------------
+
+Compiling the editor is done by calling SCons from the Godot
+root directory with the following arguments:
+
+::
+
+   scons platform=android android_arch=armv7 production=yes tools=yes target=release_debug
+   scons platform=android android_arch=arm64v8 production=yes tools=yes target=release_debug
+   scons platform=android android_arch=x86 production=yes tools=yes target=release_debug
+   scons platform=android android_arch=x86_64 production=yes tools=yes target=release_debug
+   cd platform/android/java
+   # On Windows
+   .\gradlew generateGodotEditor
+   # On Linux and macOS
+   ./gradlew generateGodotEditor
+
+
+The resulting APK will be located at ``bin/android_editor.apk``.
+
+Removing the Editor templates
+-----------------------------
+
+You can use the following commands to remove the generated editor templates:
+
+::
+
+    cd platform/android/java
+    # On Windows
+   .\gradlew cleanGodotEditor
+   # On Linux and macOS
+   ./gradlew cleanGodotEditor
+
+Installing the Godot editor
+---------------------------
+
+With an Android device with Developer Options enabled, connect the Android device to your computer via its charging cable to a USB/USB-C port.
+Open up a Terminal/Command Prompt and run the following commands from the root directory with the following arguments:
+
+::
+
+   adb install ./bin/android_editor.apk
+
 Troubleshooting
 ---------------