You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has been requested numerous times in the past and until now was blocked by lack of automated tests for Android (to avoid accidental breakages when adding stuff for other platforms). That's done now, so...
The official way to use SDL2 on Android is basically to bundle its whole source with your app and use Android's native build system. I could count a hundred reasons why forcing someone to bundle a source tree and/or use some particularly crappy build system is a wrong idea and I want to do better.
In short, I want to make Sdl2Application working on Android in hopefully the same way as the AndroidApplication is: 90% of CMake workflow stays the same, only a bunch of small files added to your project and two additional adb/ant commands in order to build and install the package (which could then be even integrated into CMake).
bundling SDL2 on Android may inflate the APK quite a lot, since we only ever use < 10% of its API (no raster stuff like circle drawing, gradients, etc.)
building it requires compiling an additional Java source, which is nowhere near straightforward, especially if want to use only CMake and android_create_apk()
lots of the unneeded extra complexity is because it tries emulates the busy-loop approach from desktops which we can't use portably at all due to Emscripten
we're actually going the other direction with Emscripten (Emscripten application #300), creating an Emscripten-specific Application implementation without SDL, to reduce the bloat
At this point, I'm slowly filling the gaps in AndroidApplication to make it more feature-complete and on par with Sdl2App. Currently that's the path of least obstacles and there's no immediate plan in porting Sdl2Application to Android.
This has been requested numerous times in the past and until now was blocked by lack of automated tests for Android (to avoid accidental breakages when adding stuff for other platforms). That's done now, so...
The official way to use SDL2 on Android is basically to bundle its whole source with your app and use Android's native build system. I could count a hundred reasons why forcing someone to bundle a source tree and/or use some particularly crappy build system is a wrong idea and I want to do better.
In short, I want to make Sdl2Application working on Android in hopefully the same way as the AndroidApplication is: 90% of CMake workflow stays the same, only a bunch of small files added to your project and two additional
adb
/ant
commands in order to build and install the package (which could then be even integrated into CMake).What needs to be done:
native_app_glue
provided by NDK, we need to build our ownCc: @alicemargatroid
The text was updated successfully, but these errors were encountered: