Closed mariusk closed 10 years ago
gradle-robovm-plugin supports robovm.xml. please try to use it like maven plugin(gradle-robovm-plugin also read robovm.xml file beneath project directory at default).
Fwiw, I've added support to libgdx for building for iOS which pulls in the native libraries using the robovm.xml file https://github.com/mariusk/libgdx/commit/01185f0b2900dc9730ae9431819b56773804b954 . With some luck this - or some variant of it - will go into the main libgdx repo soon (I've issued a pull request) which means that libgdx will support iOS builds using this plugin.
Libgdx (and other projects) needs to be able to have robovm link with native libraries. This is usually done through the references in the maven plugin or in the robovm.xml file I believe. Looking at AbstractRoboVMTask.java in the plugin it seems no attempt is made to recognize the native libraries from the gradle project. There's also no config option for adding these I believe.
Would it be possible to at least add support for a way to link with native libs, effectively having your build calling .addLib for each native lib (which again leads to a "-force_load" parameter being based to clang++)? An alternative implementation would search through "libs" for any *.a files and add those. But a simple list would at least be a great start.