my question described in Reddit…
how would you go about linking an external static native code library (i.e. containing Rust code, compiled by cargo) - which needs (presumably) to be called by the SDL2 framework , and which also must call SDL2 APIs - with C/C++ application code in an android build …
I gather that the android version of SDL2 uses it’s own Java stub, so you can’t just use a pure ‘native activity’ approach.
I can see how to compile a pure rust program for a native-activity based example… but not how to adapt the build process give by an SDL2/android native example
What would be the best way to drive such a build… hacking up an SDl2 example? writing a completely different custom makefile that would invoke bits of the NDK & other android tools , and Rust/Cargo to build rust code?
is SDL2 ever used with other AOT languages (eg go-lang?)
any advice or pointers welcome