RE: Conditional include based on configuration
RE: Conditional include based on configuration
- Subject: RE: Conditional include based on configuration
- From: Stéphane Beauchemin <email@hidden>
- Date: Wed, 17 Jun 2009 17:21:21 -0400
- Thread-topic: Conditional include based on configuration
Thanks Chris for this valuable info
It is the kind of thing that I would have
expects to be in:
http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/0-Introduction/introduction.html
It seems to be totally undocumented…
weird.
From:
Chris Espinosa [mailto:email@hidden]
Sent: June-17-09 5:01 PM
To: Stéphane Beauchemin
Cc: email@hidden
Subject: 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.
|
_______________________________________________
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