2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

make fop work on Windows

[SVN r25997]
This commit is contained in:
Aleksey Gurtovoy
2004-10-31 08:00:46 +00:00
parent e8a1bc9841
commit 194581f65c

View File

@@ -7,6 +7,7 @@
# This module defines rules to handle generation of PDF and PostScript files
# from XSL Formatting Objects via Apache FOP
import os ;
import generators ;
generators.register-standard fop.fo-to-print : FO : PDF ;
@@ -31,10 +32,23 @@ rule fo-to-print ( target : source : properties * )
{
JAVA_HOME on $(target) = $(.java-home) ;
FOP_DIR on $(target) = $(.fop-dir) ;
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 $(>) $(<)
}
}