• 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: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"?


  • Subject: Re: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"?
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 15 Nov 2004 12:01:10 -0800

On Nov 15, 2004, at 11:50 AM, Michael Rawdon wrote:

On Nov 13, 2004, at 10:00 PM, Rob Frohne wrote:
I'm having a problem with quotes ".

It seems Xcode likes to put " around each of the OTHER_CFLAGS defines.  I can't seem to get it to keep my \".  I'm not a shell script or Xcode expert.  I want to set the OTHER_CFLAGS to include things like:

-DCONFIGDIR=\"/gnome_wave_cleaner/config/\"

and Xcode translates them to:

"-DCONFIGDIR=""/gnome_wave_cleaner/config/"

I saw that you filed a bug on this, and that you're using Jambase ("classic") targets.  I think what you're seeing is one of the reasons Xcode moved away from Jam: The string is getting interpolated twice, once by Xcode and then again by Jam.

I think you can get what you want by escaping the string an extra time, e.g.:

    -DCONFIGDIR=\\\"/gnome_wave_cleaner/config/\\\"

Give that a try.

You might also consider upgrading to a native target, which should obviate the need for such workarounds.  If you're using Xcode 1.5 and for some reason native targets are not working for your project, please file bugs on the issues which are blocking you.

In addition, in Xcode 1.5 you don't need to shove your preprocessor defines into OTHER_CFLAGS; there's a specific build setting just for them.  Look for "Preprocessor Macros" in the Build settings list (chose "All Settings" from the column header popup if necessary".  Just provide a list of macros to define or pairs of macro=value, separated by spaces.

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

References: 
 >How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"? (From: Rob Frohne <email@hidden>)
 >Re: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"? (From: Michael Rawdon <email@hidden>)

  • Prev by Date: Re: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"?
  • Next by Date: Re: Incorrect warning
  • Previous by thread: Re: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"?
  • Next by thread: trouble after changing the name of a unit
  • Index(es):
    • Date
    • Thread