[jamming] Escaping in jam

david turner dturner at nds.com
Thu Feb 2 05:07:31 PST 2006


Hi Chris,

try:

DOLLAR = "$" ;
HDRS += $(DOLLAR)\\Include\\Mfc ;

Hope this helps,

- David Turner

Chris Tate a écrit :
> 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
>   

***********************************************************************************
Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message.
*********************************************************************************** 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/jamming/attachments/20060202/9664dd7c/attachment.html


More information about the jamming mailing list