• 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: Compiling Files Only in One Configurations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Files Only in One Configurations


  • Subject: Re: Compiling Files Only in One Configurations
  • From: Hamish Allan <email@hidden>
  • Date: Thu, 25 Aug 2011 09:17:44 +0100

On 25 August 2011 09:06, Salman Khilji <email@hidden> wrote:

> I'd like to compile a slightly different set of files in both configurations.  Say, Foo_Debug.cpp in Debug, and Foo_Release.cpp in the Release configuration.

You could create a file Foo.cpp containing:

#ifdef DEBUG
#include "Foo_Debug.cpp"
#else
#include "Foo_Release.cpp"
#endif

and add that to the "Compile Sources" build phase instead.

H
 _______________________________________________
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: 
 >Compiling Files Only in One Configurations (From: Salman Khilji <email@hidden>)

  • Prev by Date: Compiling Files Only in One Configurations
  • Next by Date: Re: C++ compiler isn't being used
  • Previous by thread: Compiling Files Only in One Configurations
  • Next by thread: Disable repository touching
  • Index(es):
    • Date
    • Thread