• 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: Problem when inheriting settings in xcconfig files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem when inheriting settings in xcconfig files


  • Subject: Re: Problem when inheriting settings in xcconfig files
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 11 Dec 2007 13:58:42 +0100


Le 11 déc. 07 à 13:49, Mattias Arrelid a écrit :

Hi everyone,

I have a project which defines the build and target settings through xcconfig files. Now, I would like to define other linker flags in the top level root xcconfig file, and re-use these in other xcconfig files that includes this xcconfig file. Like...

root.xcconfig:
OTHER_LDFLAGS = -framework Carbon

using_root_as_base.xcconfig:

#include "root.xcconfig"
OTHER_LDFLAGS = -framework Cocoa $(OTHER_LDFLAGS)

Why doesn't the above work as expected? E.g. when I watch the output from the build process, the build setting that uses "using_root_as_base.xcconfig" only passes "-framework Cocoa" to the linker, instead of "-framework Cocoa -framework Carbon". I've seen examples floating around the internet that uses this format, are they wrong too, or is it something that has changed lately? If i _don't_ define the OTHER_LDFLAGS in "using_root_as_base.xcconfig" the build log shows that the linker uses "-framework Carbon", as expected.

I'm on Leopard, 10.5.1...

Any ideas?

Try this.

#include "root.xcconfig"
OTHER_LDFLAGS = $(inherited) -framework Cocoa

I don't remember where i discover this variable in the first place but it's really usefull.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem when inheriting settings in xcconfig files (From: Mattias Arrelid <email@hidden>)

  • Prev by Date: Re: Key Value Observing?
  • Next by Date: Indexed Accessors vs. Data Sources
  • Previous by thread: Re: Problem when inheriting settings in xcconfig files
  • Next by thread: Re: Problem when inheriting settings in xcconfig files
  • Index(es):
    • Date
    • Thread