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.