b0b759e6da
- `_DEBUG` is MSVC specific so it didn't make much sense to define for
Android and iOS builds.
- iOS was the only platform to define `DEBUG`. We don't use it anywhere
outside thirdparty code, which we usually don't intend to debug, so it
seems better to be consistent with other platforms.
- Consistently define `NDEBUG` to disable assert behavior in both `release`
and `release_debug` targets. This used to be set for `release` for all
platforms, and `release_debug` for Android and iOS only.
- Due to the above, I removed the only use we made of `assert()` in Godot
code, which was only implemented for Unix anyway, should have been
`DEV_ENABLED`, and is in PoolAllocator which we don't actually use.
- The denoise and recast modules keep defining `NDEBUG` even for the `debug`
target as we don't want OIDN and Embree asserting all over the place.
(cherry picked from commit
|
||
---|---|---|
.. | ||
api | ||
export | ||
java | ||
plugin | ||
README.md | ||
SCsub | ||
android_input_handler.cpp | ||
android_input_handler.h | ||
android_keys_utils.cpp | ||
android_keys_utils.h | ||
audio_driver_opensl.cpp | ||
audio_driver_opensl.h | ||
detect.py | ||
dir_access_jandroid.cpp | ||
dir_access_jandroid.h | ||
file_access_android.cpp | ||
file_access_android.h | ||
file_access_filesystem_jandroid.cpp | ||
file_access_filesystem_jandroid.h | ||
java_class_wrapper.cpp | ||
java_godot_io_wrapper.cpp | ||
java_godot_io_wrapper.h | ||
java_godot_lib_jni.cpp | ||
java_godot_lib_jni.h | ||
java_godot_view_wrapper.cpp | ||
java_godot_view_wrapper.h | ||
java_godot_wrapper.cpp | ||
java_godot_wrapper.h | ||
jni_utils.cpp | ||
jni_utils.h | ||
logo.png | ||
net_socket_android.cpp | ||
net_socket_android.h | ||
os_android.cpp | ||
os_android.h | ||
platform_config.h | ||
power_android.cpp | ||
power_android.h | ||
run_icon.png | ||
string_android.h | ||
thread_jandroid.cpp | ||
thread_jandroid.h | ||
tts_android.cpp | ||
tts_android.h |
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.
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.