How to create multiple targets with the same source code?

In iOS, Xcode allows you to have multiple targets. How to have multiple targets for android platform?

Firstly, please refer to v0.12 ’s improvement of android module build system, we seperate the project into several static libraries and finally link to one dynamic library which can be invoked by java layer.
Secondly, if you want multiple libgame.so, cocos2d-x/tests & cocos2d-x/HelloWorld is the sample. You should create different application folders for different executable targets.

Hi Walzer:

Thanks for the reply. I got it working. I created several different projects and put them in the same root directory to share the source files in the Classes directory.