robovm/robovm — pull request #625 by wfrank2509 (2014-12-03 16:25:29+00:00)
Title: Use robovm to create a static iOS library

I "patched" robovm based on the various sources/feedback on StackOverflow and the Google group so that it can be used to create static libraries additionally to the default full apps.

The main key is to link to the "new" bclib library instead bc in the app. All the functionality available today in the standard robovm (i.e. robovm compiler) is not changed.

There is still lot of room for improvement and some redundant code parts between the bc and bclib could be extracted to a common package. I basically just copied the bc package over to bclib and patched the main method as well as the rvmRun method in init.c plus some additional headers to make the initializers available.

I would be happy to get some feedback about this approach and maybe/hopefully contribute in this direction to provide this new feature to robovm.

Thanks,
Wolfgang