virtualx-engine/platform/android
Rémi Verschelde 55550da68b
SCons: Disable C++ exception handling
Upon investigating the extremely slow MSVC build times in #80513, I noticed
that while Godot policy is to never use exceptions, we weren't enforcing it
with compiler flags, and thus still included exception handling code and
stack unwinding.

This is wasteful on multiple aspects:

- Binary size: Around 20% binary size reduction with exceptions disabled
  for both MSVC and GCC binaries.
- Compile time:
  * More than 50% build time reduction with MSVC.
  * 10% to 25% build time reduction with GCC + LTO.
- Performance: Possibly, needs to be benchmarked.

Since users may want to re-enable exceptions in their own thirdparty code
or the libraries they compile with Godot, this behavior can be toggled with
the `disable_exceptions` SCons option, which defaults to true.
2023-08-16 10:34:10 +02:00
..
api One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
export Bump the target SDK version to 33 (Android 13) 2023-03-21 19:24:39 -07:00
java Add parameters for the Godot Activity starting intent to allow restarting or force-quitting the engine 2023-06-15 21:45:30 -07:00
plugin One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
android_input_handler.cpp Augment the InputEvent class with a CANCELED state 2023-05-12 15:22:54 -07:00
android_input_handler.h Augment the InputEvent class with a CANCELED state 2023-05-12 15:22:54 -07:00
android_keys_utils.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
android_keys_utils.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
audio_driver_opensl.cpp Fix issue causing the Android editor to crash when creating a new AudioStreamMicrophone 2023-05-31 00:21:57 -07:00
audio_driver_opensl.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
detect.py SCons: Disable C++ exception handling 2023-08-16 10:34:10 +02:00
dir_access_jandroid.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
dir_access_jandroid.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
file_access_android.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
file_access_android.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
file_access_filesystem_jandroid.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
file_access_filesystem_jandroid.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
java_class_wrapper.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
java_godot_io_wrapper.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
java_godot_io_wrapper.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
java_godot_lib_jni.cpp Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00
java_godot_lib_jni.h Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00
java_godot_view_wrapper.cpp Improve touchpad and mouse support for the Android editor 2023-05-25 20:09:35 -07:00
java_godot_view_wrapper.h Improve touchpad and mouse support for the Android editor 2023-05-25 20:09:35 -07:00
java_godot_wrapper.cpp Add benchmark logic 2023-03-20 23:29:36 -07:00
java_godot_wrapper.h Add benchmark logic 2023-03-20 23:29:36 -07:00
jni_utils.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
jni_utils.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
logo.png Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
net_socket_android.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
net_socket_android.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
os_android.cpp Add benchmark logic 2023-03-20 23:29:36 -07:00
os_android.h Add benchmark logic 2023-03-20 23:29:36 -07:00
platform_config.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
power_android.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
power_android.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
README.md Add logo attribution for Android, HTML5 and Linux platform icons 2021-09-21 17:14:59 +02:00
run_icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
SCsub Update the gradle build tasks to generate play store builds. 2023-04-27 22:13:00 -07:00
string_android.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
thread_jandroid.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
thread_jandroid.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
tts_android.cpp Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00
tts_android.h Add audio/general/text_to_speech project setting to enable/disable TTS. 2023-05-26 20:57:29 +03:00

Android platform port

This folder contains the Java and C++ (JNI) code for the Android platform port, using Gradle as a build system.

Artwork license

logo.png and run_icon.png are licensed under Creative Commons Attribution 3.0 Unported per the Android logo usage guidelines:

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.