• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Including different libs based on build style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Including different libs based on build style
      • From: "Mike Pinkerton" <email@hidden>
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>)

  • Prev by Date: Re: Including different libs based on build style
  • Next by Date: Re: Including different libs based on build style
  • Previous by thread: Re: Including different libs based on build style
  • Next by thread: Re: Including different libs based on build style
  • Index(es):
    • Date
    • Thread