mosra / magnum

Lightweight and modular C++11 graphics middleware for games and data visualization
https://magnum.graphics/
Other
4.76k stars 439 forks source link

Port Sdl2Application to Android #186

Open mosra opened 7 years ago

mosra commented 7 years ago

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:

Cc: @Alicemargatroid

mosra commented 5 years ago

Re-thinking this after a while:

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.