Re: Conditional include based on configuration
Re: Conditional include based on configuration
- Subject: Re: Conditional include based on configuration
- From: Chris Espinosa <email@hidden>
- Date: Wed, 17 Jun 2009 14:00:45 -0700
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