1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
38 # --- Settings -----------------------------------------------------
42 # --- test lib ------------------------------------------------------
44 .IF
"$(ENABLE_PDFIMPORT)" == "NO"
46 @echo
"PDF Import extension disabled."
49 .IF
"$(SYSTEM_ZLIB)" == "YES"
58 $(SLB
)$/pdfparse.lib \
60 $(SLB
)$/pdfparsetree.lib \
62 $(SLB
)$/xpdfwrapper.lib \
78 SHL1IMPLIB
= i
$(SHL1TARGET
)
79 DEF1NAME
=$(SHL1TARGET
)
80 SHL1VERSIONMAP
= export.map
82 # --- pdf2xml binary ------------------------------------------------------
88 APP1OBJS
=$(SLO
)$/pdf2xml.obj
92 $(SLB
)$/pdfparse.lib \
94 $(SLB
)$/pdfparsetree.lib \
96 $(SLB
)$/xpdfwrapper.lib \
110 # --- pdfunzip binary ------------------------------------------------------
114 APP2TARGET
=$(TARGET3
)
116 APP2OBJS
=$(SLO
)$/pdfunzip.obj
119 $(SLB
)$/pdfmisc.lib \
120 $(SLB
)$/pdfparse.lib \
122 $(SLB
)$/pdfparsetree.lib \
124 $(SLB
)$/xpdfwrapper.lib \
125 $(SLB
)$/pdfimport.lib
138 # --- Targets ------------------------------------------------------
141 .INCLUDE
: _cppunit.mk
143 # --- Fake uno bootstrap & copy testfile ------------------------
145 $(BIN
)$/pdfi_unittest_test.pdf
: testinput.pdf
147 $(GNUCOPY
) testinput.pdf
$@
149 $(BIN
)$/pdfi_unittest_test.ini
: makefile.mk
151 @echo UNO_SERVICES
= > $@
152 @echo UNO_TYPES
=$(UNOUCRRDB
:s
/\
/\\/) >> $@
154 # --- Enable testshl2 execution in normal build ------------------------
156 $(MISC
)$/pdfi_unittest_succeeded
: $(SHL1TARGETN
) $(BIN
)$/pdfi_unittest_test.pdf
$(BIN
)$/pdfi_unittest_test.ini
157 rm -f
$(BIN
)$/pdfi_unittest_draw.xml
158 rm -f
$(BIN
)$/pdfi_unittest_writer.xml
159 @echo
----------------------------------------------------------
160 @echo
- start unit
test on library
$(SHL1TARGETN
)
161 @echo
----------------------------------------------------------
162 testshl2
-forward
$(BIN
)$/ $(SHL1TARGETN
)
165 #ALLTAR : $(MISC)$/pdfi_unittest_succeeded