Skip to content

Enhancements to Xcode building (incl. Mac static library support)#16

Closed
zwaldowski wants to merge 3 commits intolibffi:masterfrom
zwaldowski:master
Closed

Enhancements to Xcode building (incl. Mac static library support)#16
zwaldowski wants to merge 3 commits intolibffi:masterfrom
zwaldowski:master

Conversation

@zwaldowski
Copy link
Copy Markdown
Contributor

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 as a dependency. No specific hard-coded changes are made to the tree for that, however.

Signed-off-by: Zachary Waldowski <[email protected]>

Also support a Mac static library via Xcode.

Signed-off-by: Zachary Waldowski <[email protected]>
…. Don't always regenerate config files.

Signed-off-by: Zachary Waldowski <[email protected]>
@atgreen
Copy link
Copy Markdown
Member

atgreen commented Apr 12, 2012

Thanks!

16 years old for real?

In any case, I've merged your changes. Thanks again.

AG

@atgreen
Copy link
Copy Markdown
Member

atgreen commented Apr 27, 2012

@zwaldowski
Copy link
Copy Markdown
Contributor Author

Terribly sorry, man, the Xcode project was including dlmalloc.c separately
from debug.c and it was overriding the system one on accident. I just
committed a like 10-line fix to the project on my fork. I'm so sorry if
that screws up the tag of 3.0.11 stuff.

Sincerely,
Zachary Waldowski

On Fri, Apr 27, 2012 at 10:29 AM, Anthony Green <
[email protected]

wrote:

zwaldowski - could you please look at this...

https://github.com/atgreen/libffi/issues/18


Reply to this email directly or view it on GitHub:
https://github.com/atgreen/libffi/pull/16#issuecomment-5382522

@atgreen
Copy link
Copy Markdown
Member

atgreen commented Apr 27, 2012

Can you send me a pull request for the fix so I can put it in 3.0.12?
I don't want to have a broken 3.0.11 out there.

AG

On Fri, Apr 27, 2012 at 10:48 AM, Zachary Waldowski
[email protected]
wrote:

Terribly sorry, man, the Xcode project was including dlmalloc.c separately
from debug.c and it was overriding the system one on accident. I just
committed a like 10-line fix to the project on my fork. I'm so sorry if
that screws up the tag of 3.0.11 stuff.

Sincerely,
Zachary Waldowski

On Fri, Apr 27, 2012 at 10:29 AM, Anthony Green <
[email protected]

wrote:

zwaldowski - could you please look at this...

https://github.com/atgreen/libffi/issues/18


Reply to this email directly or view it on GitHub:
https://github.com/atgreen/libffi/pull/16#issuecomment-5382522


Reply to this email directly or view it on GitHub:
https://github.com/atgreen/libffi/pull/16#issuecomment-5382885

@zwaldowski
Copy link
Copy Markdown
Contributor Author

Sure. I also have some fixes for the ARM assembly on some new-style assemblers, like the LLVM one. I don't know if you know anything about ARM assembly (because I know nothing), but I'll add those in as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants