Boost logo

Boost-Build :

From: Daniel Einspanjer (deinspanjer_at_[hidden])
Date: 2006-02-14 13:43:48


"Vladimir Prus" <ghost_at_[hidden]> wrote in message
news:200602141136.40250.ghost_at_cs.msu.su...
> Then, you can scope 'XSL_TOOL' on target, like this:
>
> rule whatever ( targets * : sources * : properties * )
> {
> XSL_TOOL on $(target[1]) = ....... ;
> }
>
> This variable will be visible only inside the action. If the xsl command
> is
> the same for all actions, it might be easier to make it a global variable:
>
> rule init ( ............. )
> {
> XSL_TOOL = ........ ;
> }
>
> If you need to handle more then one version of your xsl tool, you'd need
> more
> complex mechanism, something like:
>
> rule init ( version : command )
> {
> flags your-module.whatever XSL_TOOL <xsl-tool-version>$(version)
> : $(command) ;
> }

Wow. Thanks for the detailed response. I only understand a bit of it so
far, but you answered my question and gave me stuff to digest. :)


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk