I am trying to accomplish this structure of an application where I want different code bases handling different views in the game. For convenience I was thinking of dividing them up into different shared libraries so that it is easy for android to map them to native activities. Then it wont be that resource efficient to use cocos2dx as a static library since it will be compiled into all libraries. Instead I would like them to link against the cocos2dx library, and thus I need to build it as a shared library for android. I am not that experienced in ndk-build and such and thus need some help into accomplishing this. What makefiles do I need to modify and what ndk-build parameters needs to be specified to get the shared library?