Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Conditional include based on configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional include based on configuration




On Jun 17, 2009, at 12:38 PM, Stéphane Beauchemin wrote:

We need to have some source files included only in the debug version but not in the release build. It seems to be impossible to do that kind of thing with XCode. Anyone has a workaround, for it?
 
We have about 100 files that need be removed from the release build (those files needs to be in release build). It is a multiplatform library so we don’t really want to pollute all the files by #ifdef DEBUG.

Create a User-Defined Build Setting in the Release build called EXCLUDED_SOURCE_FILE_NAMES and set its value to a list of file names (or filename patterns, e.g. "*debug.m") that only match the files to be excluded.  Those files will bot be processed in the build.

Chris
 _______________________________________________
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

References: 
 >Conditional include based on configuration (From: Stéphane Beauchemin <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.