Re: Making a set of targets where only one source file varies
Re: Making a set of targets where only one source file varies
- Subject: Re: Making a set of targets where only one source file varies
- From: Michael Crawford <email@hidden>
- Date: Sun, 15 Feb 2009 13:17:24 -0800
> I don't know if I explained this very well, but I'm trying to avoid
> recompiling files that don't change. Can anyone tell me if I'm on the right
> track, or suggest a methodology?
Make a target that all the others depend on, then put all the
unchanging files in that one target and remove them from the others.
Make that target generate a static library (a .a, and not a .so), then
make all the other targets link to it - include the .a file in the
Libraries and Frameworks group.
Static libraries are the best thing sinced sliced bread, when you have
a big codebase that is mostly unchanging.
And yes, you're on the right track.
If you're compiling a GUI application or at least something that
creates some kind of bundle, you could create a dynamic library or
private framework instead, which would be in
YourApp.app/Contents/Libraries or YourApp.app/Contents/Frameworks.
The advantage of that is that you could supply updates by just sending
out the new library or framework, without having to relink or
redistribute the whole executable, as would be the case with a static
library.
Mike
--
Michael David Crawford
mdcrawford at gmail dot com
prgmr.com - We don't assume you are stupid.
Xen-powered virtual private servers: http://prgmr.com/xen/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden