• 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: Conditional cross-project reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional cross-project reference


  • Subject: Re: Conditional cross-project reference
  • From: Guillaume Billard <email@hidden>
  • Date: Wed, 1 Sep 2010 10:53:09 +0200

e 30 août 2010 à 20:06, Fritz Anderson a écrit :

> On 30 Aug 2010, at 9:42 AM, Guillaume Billard wrote:
>
>> We have a i386+x86_64 application that we want to be dependent on a library only when building the i386 version of the app. This library is not available as x86_64.
>> Is this possible with Xcode? Or maybe I'm not tackling this the way I should be?
>
> You could move the directive to link that library out of the target info and into a build setting, to which you could then attach an "arch=i386" condition. Caveat that I'm working from memory here.

What I planned to do was conditioning the linker flag "-lMy32BitOnlyLib" to "arch=i386", as you suggested if I understand correctly. But that only solves part of the problem. Because there is a cross-project reference, the library is built when the main application project that depends on it is built. This is what I want for a i386 build. For a x86_64 build, I want the dependency to the library to be ignored, so that Xcode doesn't try to build the library.

Thanks.

Guillaume

 _______________________________________________
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

  • Next by Date: Re: Using Xcode with OSX Server?
  • Next by thread: Re: Using Xcode with OSX Server?
  • Index(es):
    • Date
    • Thread