Compiling SDL for Android as a standalone library

Currently to compile SDL for android, you need to add your own application’s source files to the provided android-project directory structure and add them to /jni/src/Android.mk

Running ndk-build will compile two libraries: libSDL and libmain, the latter being your source files + SDL_android_main.c

I just want one libSDL without having to compile my project using the NDKs build tools. However, the problem is that you need to compile SDL_android_main.c into your project. SDL_android_main references a bunch of stuff in the SDL/src/ tree.

There’s no ‘separation’ of libSDL like a normal build on Linux for example. I need to build an application using the entire SDL source tree every time. Is there any way to just build a standalone SDL for Android?