From: Arno P. <ar...@pu...> - 2011-10-31 05:30:57
|
Guys, as some of you know, we are working on generating the Java iOS API from the original Objective-C header files. This would replace the time-consuming, error prone process of doing this manually. Another benefit is that we would have instant 100% coverage of the complete iOS API. There is now a very first version of this new API to show where things are headed. There are two new directories: xmlvm/src/ios: contains the generated Java iOS API. xmlvm/src/xmlvm2c/lib/wrapper: contains the generated C wrappers. The new API lives in package org.xmlvm.ios.*. When cross-compiling an iOS application with --target=iphonec, use the new command line parameter --xmlvm-new-ios-api. At this stage, the new API only supports structs (such as CGRect, CGPoint, etc). There is a minimalistic test case in xmlvm/src/test/ios that can be cross-compiled in the following way: java -Xmx1G -jar dist/xmlvm.jar --in=bin/org/xmlvm/test/ios/ \ --out=out --app-name=CGRectTest --target=iphonec \ --xmlvm-new-ios-api To generate the new API yourself, you need to checkout trunk/crossmobile in the same directory where you checked out trunk/xmlvm, then: cd crossmobile ant gen-xmlvm-ios There is still much work ahead, but we wanted to give you a heads up on the progress. Please consider to help if you have spare cycles. Arno |