godot/platform/android
Rémi Verschelde 269b115d9c 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.

(cherry picked from commit 3907e53ff6)
2023-09-20 22:44:05 +02:00
..
api Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
doc_classes Enhance icon fallback and their docs for exporters 2023-06-03 19:28:50 -03:00
export Display a message about missing C# support on Android/iOS/Web platforms 2023-06-24 00:09:06 +02:00
java [Android] Set `echo` property for the physical keyboard events. 2023-08-31 19:48:16 +02:00
plugin Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
README.md Update all outdated online documentation links 2023-01-14 19:38:00 +03:00
SCsub Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
android_input_handler.cpp [Android] Set `echo` property for the physical keyboard events. 2023-08-31 19:48:16 +02:00
android_input_handler.h [Android] Set `echo` property for the physical keyboard events. 2023-08-31 19:48:16 +02:00
android_keys_utils.cpp Cleanup and unify keyboard input. 2023-01-23 15:08:12 +02:00
android_keys_utils.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
audio_driver_opensl.cpp Fix issue causing the Android editor to crash when creating a new AudioStreamMicrophone 2023-05-31 00:58:27 -07:00
audio_driver_opensl.h Further refactoring to AudioDriver implementations after #69120. 2023-02-09 11:02:00 +01:00
detect.py SCons: Disable C++ exception handling 2023-09-20 22:44:05 +02:00
dir_access_jandroid.cpp Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
dir_access_jandroid.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
display_server_android.cpp [DisplayServer] Add method to check if native window is focused. 2023-06-16 10:27:52 +03:00
display_server_android.h [DisplayServer] Add method to check if native window is focused. 2023-06-16 10:27:52 +03:00
file_access_android.cpp Restore FileAccess.close method. 2023-02-16 15:34:20 +02:00
file_access_android.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
file_access_filesystem_jandroid.cpp Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
file_access_filesystem_jandroid.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
java_class_wrapper.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
java_godot_io_wrapper.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
java_godot_io_wrapper.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
java_godot_lib_jni.cpp [Android] Set `echo` property for the physical keyboard events. 2023-08-31 19:48:16 +02:00
java_godot_lib_jni.h [Android] Set `echo` property for the physical keyboard events. 2023-08-31 19:48:16 +02:00
java_godot_view_wrapper.cpp Improve touchpad and mouse support for the Android editor 2023-05-25 20:27:04 -07:00
java_godot_view_wrapper.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
java_godot_wrapper.cpp Improve startup benchmarking 2023-05-23 13:22:35 -07:00
java_godot_wrapper.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
jni_utils.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
jni_utils.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
net_socket_android.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
net_socket_android.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
os_android.cpp Fix formatting of dlopen error message on Windows 2023-07-10 18:09:57 +02:00
os_android.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
platform_config.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
string_android.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
thread_jandroid.cpp Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
thread_jandroid.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
tts_android.cpp Add `audio/general/text_to_speech` project setting to enable/disable TTS. 2023-05-18 20:16:03 +03:00
tts_android.h Add `audio/general/text_to_speech` project setting to enable/disable TTS. 2023-05-18 20:16:03 +03:00
vulkan_context_android.cpp Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
vulkan_context_android.h Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00

README.md

Android platform port

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

Documentation

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.