Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including different libs based on build style



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.


References: 
 >Including different libs based on build style (From: "Mike Pinkerton" <email@hidden>)
 >Re: Including different libs based on build style (From: Bryan Pietrzak <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.