[jamming] Escaping in jam
Craig Allsop
cjamallsop at gmail.com
Fri Feb 3 15:39:48 PST 2006
Like this...
DOLLAR = $ ;
echo "-I$(DOLLAR)(BCB)\\Include\\Mfc" ;
Craig.
On 2/2/06, Chris Tate <Chris.Tate at openwave.com> wrote:
>
> I'm beating my head against this a bit and not making much progress -- i
> need to set a Jam variable to be a string that "looks" like a Jam variable
> reference. Backslash and double-quote escaping don't seem to be working as
> I expect them to. I'm using Jam on Windows XP.
>
> The end result I'm trying to accomplish is to pass this flag to Borland
> C++ Builder:
>
> "-I$(BCB)\Include\Mfc"
>
> C++ Builder interprets the *literal* string "$(BCB)" itself; i need to
> cause it to be passed unaltered to the compiler invocation. Various
> combinations of backslash escaping or double quoting don't seem to work. In
> particular, I find it quite strange that this works:
>
> HDRS += \$\\Include\\Mfc
>
> to produce "-I$\Include\Mfc" in the compiler's invocation, but
>
> HDRS += \$\(BCB\)\\Include\\Mfc
>
> is apparently *stripped*; no part of that fragment winds up in a -I flag
> on the command line.
>
> Help?
>
> --
> chris tate
> chris.tate at openwave.com
>
> _______________________________________________
> jamming mailing list - jamming at perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/jamming/attachments/20060203/0b7e1246/attachment.html
More information about the jamming
mailing list