summaryrefslogtreecommitdiff
path: root/Jamfile
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-04-22 05:49:46 +0200
committerTor Andersson <tor@ghostscript.com>2005-04-22 05:49:46 +0200
commit5d60cba9550a9c9cb1ca0fce00a8791ff06f457e (patch)
tree3ae81076ec120248771dea9600da652d96b1d38a /Jamfile
parent6724a368345feb498c4a2c351f4dd90f2974786a (diff)
downloadmupdf-5d60cba9550a9c9cb1ca0fce00a8791ff06f457e.tar.xz
add xcopy rule to jamfile
Diffstat (limited to 'Jamfile')
-rw-r--r--Jamfile23
1 files changed, 17 insertions, 6 deletions
diff --git a/Jamfile b/Jamfile
index c64ba608..17ef4a30 100644
--- a/Jamfile
+++ b/Jamfile
@@ -21,20 +21,20 @@ FITZLIBS = libmupdf libstream libfitz librender libfonts ;
if $(HAVE_JASPER) = yes
{
- CCFLAGS += -DHAVE_JASPER ;
+ DEFINES += HAVE_JASPER ;
LINKLIBS += -ljasper ;
}
if $(HAVE_JBIG2DEC) = yes
{
- CCFLAGS += -DHAVE_JBIG2DEC ;
+ DEFINES += HAVE_JBIG2DEC ;
LINKLIBS += -ljbig2dec ;
}
-if $(NEED_GETOPT) = yes { CCFLAGS += -DNEED_GETOPT ; }
-if $(NEED_STRLCAT) = yes { CCFLAGS += -DNEED_STRLCAT ; }
-if $(NEED_STRLCPY) = yes { CCFLAGS += -DNEED_STRLCPY ; }
-if $(NEED_STRSEP) = yes { CCFLAGS += -DNEED_STRSEP ; }
+if $(NEED_GETOPT) = yes { DEFINES += NEED_GETOPT ; }
+if $(NEED_STRLCAT) = yes { DEFINES += NEED_STRLCAT ; }
+if $(NEED_STRLCPY) = yes { DEFINES += NEED_STRLCPY ; }
+if $(NEED_STRSEP) = yes { DEFINES += NEED_STRSEP ; }
HDRS =
[ FDirName $(TOP) include ]
@@ -75,6 +75,17 @@ rule WindRes
actions HexDump { xxd -i $(>) > $(<) }
actions WindRes { windres -i $(>) -o $(<) --include-dir=$(>:D) }
+rule XCopy
+{
+ for i in $(<)
+ {
+ local d = [ FDirName $(LOCATE_TARGET) $(i:D) ] ;
+ LOCATE on $(i:G=xcopy) = $(LOCATE_TARGET) ;
+ Depends $(i:G=xcopy) : $(d:G=dir) ;
+ MkDir $(d:G=dir) ;
+ File $(i:G=xcopy) : $(i) ;
+ }
+}
# --------------------------------------------------------------------------