• 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: Conditional include based on configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • RE: Conditional include based on configuration
      • From: Stéphane Beauchemin <email@hidden>
References: 
 >Conditional include based on configuration (From: Stéphane Beauchemin <email@hidden>)

  • Prev by Date: Conditional include based on configuration
  • Next by Date: RE: Conditional include based on configuration
  • Previous by thread: Conditional include based on configuration
  • Next by thread: RE: Conditional include based on configuration
  • Index(es):
    • Date
    • Thread