Re: How do I set OTHER_CFLAGS to -DCONFIGDIR=\"/gnome_wave_cleaner/config/\"?
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: Michael Rawdon <email@hidden>
- Date: Mon, 15 Nov 2004 11:50:38 -0800
Hi Rob -
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:
<x-tad-smaller>"-DCONFIGDIR=""/gnome_wave_cleaner/config/"
</x-tad-smaller>
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.
mhr
_______________________________________________
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