Build Erlang like static library for iOS/Android. How?

Found few articles about this topic:

And official documentation:

And one abandoned project: