How to build libcocos2d.so in Cocos2dx-3.0?

 In cocos2dx 3.0, every project must build cocos2d library one time. I want to build a libcocos2d.so, So every project can use it. But the method cocos_android_app_init(...) must be implement in the project which used by cocos2d library.
 How to change the cocos2d code to build libcocos2d.so? Thanks. 

Now there is not way to do it as you like. It needs a way to start application.

Thanks very much. Has any methods to reduce the compile time in many project?

Can pass -j x, x is the cpu cores.