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:
@@ -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 $(>) $(<)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user