Can you use Build Configurations to link with different libraries?
Can you use Build Configurations to link with different libraries?
- Subject: Can you use Build Configurations to link with different libraries?
- From: Dave Thorup <email@hidden>
- Date: Tue, 19 Jul 2005 13:56:43 -0400
Build Configurations seem to work well when I'm building a single library that doesn't link with anything else. In this scenario I can have a single target with three Build Configurations (Debug, Profiler and Release). But what can I do when I build an Application that needs to link with the Debug, Profiler and Release libraries depending on what kind of build I'm doing?
I'd like to still have a single target with three Build Configurations but I don't see any way to make this work. The Debug, Profiler and Release libraries are all named differently (ex: libFoo_debug.dylib, libFoo_profile.dylib and libFoo.dylib respectively). If I were to try to add them all to a single target then the linker would try to link my application to all of them which isn't what I want. The only thing that I can think of is that when running an executable there is an option of "using <no, debug or profile> suffix when loading frameworks." But this only applies to running the executable, not to linking the app. If there were some option that you could send to the linker via the "Other Linker Flags" to set the suffix of the libraries you want to link to then that would probably work. I've scanned the ld man pages and I don't see any such option. I'd also need to modify the Copy Files build phase via Build Configurations and I'm not sure how to do that (if it's even possible).
As it is right now, any project that needs to link with Debug, Profiler and Release libraries needs to have three separate targets. This makes Build Configurations useless for these projects. I end up having three targets and only one Build Configuration. I'd really like it if Build Configurations could help me, but right now I'm stuck with maintaining three targets.
Does anyone have any ideas on how to consolidate my targets into one and use Build Configurations?
Thanks! _____________________________
Dave Thorup Software Engineer email@hidden
http://www.kuwan.net Defaults Manager - The premier editor for Mac OS X's User Defaults / Preferences database.
|
_______________________________________________
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