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: xcconfig files and ZeroLink



On Jun 29, 2005, at 12:17 PM, Mark Dalrymple wrote:
Or am I just misunderstanding how .xcconfig files work?

Just to expand a little on what Scott and Mark said, .xcconfig files act as a basis for configurations, and configurations inherit by name within a project.


For example, when you build a target with the Debug configuration the settings that are used come from (in order):

0. xcodebuild command-line arguments, if you're using xcodebuild.

1. The Debug configuration for the target. If an .xcconfig file is specified it forms a basis for the configuration that can then be customized.

2. The Debug configuration for the project containing the target. If an .xcconfig file is specified it forms a basis for the configuration that can then be customized.

3. Environment variables.

4. Default values for the settings.

Since you created an .xcconfig file containing ZERO_LINK=NO and based a configuration in your project on it, you were providing a basis for the ZERO_LINK setting at layer #2 above which you could customize in layers #0 through #2. Since there was also a ZERO_LINK setting in layer #1, that was the one that was used.

By and large, you generally won't need to think about putting any settings at the project level unless you explicitly want to take advantage of this inheritance.

  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >xcconfig files and ZeroLink (From: Mark Dalrymple <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.