Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-01 02:37:42


On Sunday 31 October 2004 11:00, Aleksey Gurtovoy wrote:

> - fop $(target) : $(source) ;
> + if [ os.on-windows ]
> + {
> + fop-nt $(target) : $(source) ;
> + }
> + else
> + {
> + fop $(target) : $(source) ;
> + }
> +}
> +
> +actions fop-nt
> +{
> + set JAVA_HOME=$(JAVA_HOME)
> + $(FOP_DIR)/fop.bat $(>) $(<)
> }
>
> actions fop
> {
> JAVA_HOME=$(JAVA_HOME) $(FOP_DIR)/fop.sh $(>) $(<)
> -}
> \ No newline at end of file
> +}

I don't think that's 100% right change. For setting variables in a
platform-independent way we have "common.variable-setting-command', so the
above would have to be:

rule fop-to-print
{
........
PATH_SETUP on $(target) =
[ common.variable-setting-command JAVA_HOME : $(JAVA_HOME) ]
}

actions fop
{
$(PATH_SETUP)
......
}

Another issue is that fop.jam requires user to specify path to FOP, while all
the compilers require full path to executable. If we used the same syntax for
fop, there would be no reason to decide if "fop.bat" or "fop.sh" should be
used.

Doug, what would you say if I change fop.jam to accept the fop *command*, not
path? There's no need to push this into this release, though.

- Volodya

 


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