• 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: Build style sensing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build style sensing


  • Subject: Re: Build style sensing
  • From: Tom Dibble <email@hidden>
  • Date: Thu, 5 Aug 2004 07:36:02 -0500

On Aug 5, 2004, at 1:06 AM, Nick Zitzmann wrote:

On Aug 4, 2004, at 11:23 PM, Nigel Spon wrote:

I'm having trouble figuring out the best method of adding conditionals to my code that will be included when I use a "development" build style. There doesn't seem to be any easy way of adding a symbol so I can use "#ifdef qDebug". I could tell the build style to force a prefix header with "#define qDebug" in it, but that would mean I couldn't use prefix headers in the target build options to define precompiled headers for the different targets that my project builds... I think. I have the feeling I'm coming at this from the wrong direction, does anyone know of a better way of doing it?

In the build style settings, add "-DqDebug" to the "other C flags" setting, without the quotes.

Alternatively, put "$(value) qDebug" in the preprocessor macros box (look under preprocessor settings; I may have the name slightly off). "$(value)" stands as a placeholder for everything in the target's list of definitions, so you will most likely want to include that (the same holds true for the "other C flags" setting).


				---- Tom Dibble
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Build style sensing (From: Nigel Spon <email@hidden>)
 >Re: Build style sensing (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Xcode 1.5 Target Inspector Bug
  • Next by Date: XCode, jar and images
  • Previous by thread: Re: Build style sensing
  • Next by thread: Xcode 1.5 Target Inspector Bug
  • Index(es):
    • Date
    • Thread