atgreen/libffi — pull request #16 by zwaldowski (2012-04-11 00:28:12+00:00)
Title: Enhancements to Xcode building (incl. Mac static library support)

I started working on an Xcode project today, and, oh look, somebody's already done it. Changes over the just-plain iOS library are nominal; the only things I really changed on that front are the name of the target (`ffi` to `libffi iOS`, still producing a `libffi.a`) and the release target (iOS 4.0).

The Mac version is an almost identical version of the setup, producing only x86_64 and i386 targets against the latest OS X SDK. A far more skilled Python developer than I could probably take a crack at unifying the two systems.

Some tiny adjustments are made to allow building iOS and OS X from the same tree. Also, the scripts are added to Xcode as build scripts so that one can simply open the libffi.xcodeproj and build for a fully functional static library in under 30 seconds, no terminal required. These adjustments also allow for iOS and OS X library production to be entirely automated for use in something like [CocoaPods](https://github.com/CocoaPods/CocoaPods) as a dependency. No specific hard-coded changes are made to the tree for that, however.