Re: Including different libs based on build style
Re: Including different libs based on build style
- Subject: Re: Including different libs based on build style
- From: Dave Camp <email@hidden>
- Date: Wed, 25 Aug 2004 14:25:52 -0700
On Aug 25, 2004, at 1:50 PM, Bryan Pietrzak wrote:
On Aug 25, 2004, at 2:25 PM, Mike Pinkerton wrote:
I'm wondering if I'm just overlooking how to do something, I can't
figure out how with XCode.
I have a project that uses prebuilt libraries from an external source.
The libraries are in separate directories for debug and release, eg:
I asked this same question at WWDC and was told that no, build styles
doesn't support this, you can't do this without two targets at this
time.
I too have the exact same problem.
I think you could do this with some crafty use of build variables.
In the build styles, define variables with the paths to the two
different libraries to use. myVar = path/to/library.
In the target settings, add a library search path of ${myvar}. In the
additional linker flags, place a -llibMyFoo.a
The linker should link against the libMyFoo.a library at the path myVar
as set in the build styles.
Dave
---
The path of least resistance, it's not just for electricity any more.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.