Compile SDL2 for use in Xamarin Android


since a few days I’m trying to build SDL for Android.

I’m not often using Linux but I successfully compiled ffmpeg last week but on SDL the mk seems only to work with an active Android project. However I am using Xamarin so this tool won’t work for me, I need to compile it as a static library and link it into a cross platform ffmpeg+SDL c wrapper which sets up the functions for my C# code.

So what I need is something like a libsdl2.a to link. (with all the android cpus like x86, arm, arm-v7a).

I tried modifying the existing files but everything failed.

Thanks for your help.

Got it working.
I followed this guide: