Update ooo320-m1
[ooovba.git] / sdext / source / pdfimport / test / makefile.mk
blob2fb8d3a624171e437b41c89154c2ae571660d58b
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.2 $
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 #*************************************************************************
32 PRJ=..$/..$/..
33 PRJNAME=sdext
34 TARGET=tests
35 TARGETTYPE=CUI
36 ENABLE_EXCEPTIONS=TRUE
38 # --- Settings -----------------------------------------------------
40 .INCLUDE: settings.mk
42 # --- test lib ------------------------------------------------------
44 .IF "$(ENABLE_PDFIMPORT)" == "NO"
45 @all:
46 @echo "PDF Import extension disabled."
47 .ENDIF
49 .IF "$(SYSTEM_ZLIB)" == "YES"
50 CFLAGS+=-DSYSTEM_ZLIB
51 .ENDIF
53 SHL1OBJS= \
54 $(SLO)$/tests.obj
56 SHL1LIBS=\
57 $(SLB)$/pdfmisc.lib \
58 $(SLB)$/pdfparse.lib \
59 $(SLB)$/pdfsax.lib \
60 $(SLB)$/pdfparsetree.lib \
61 $(SLB)$/pdfodf.lib \
62 $(SLB)$/xpdfwrapper.lib \
63 $(SLB)$/pdfimport.lib
65 SHL1TARGET=$(TARGET)
66 SHL1STDLIBS=\
67 $(BASEGFXLIB) \
68 $(UNOTOOLSLIB) \
69 $(CANVASTOOLSLIB) \
70 $(COMPHELPERLIB) \
71 $(CPPUHELPERLIB) \
72 $(CPPUNITLIB) \
73 $(ZLIB3RDLIB) \
74 $(CPPULIB) \
75 $(SALLIB)
78 SHL1IMPLIB= i$(SHL1TARGET)
79 DEF1NAME =$(SHL1TARGET)
80 SHL1VERSIONMAP = export.map
82 # --- pdf2xml binary ------------------------------------------------------
84 TARGET2=pdf2xml
86 APP1TARGET=$(TARGET2)
87 APP1LIBSALCPPRT=
88 APP1OBJS=$(SLO)$/pdf2xml.obj
90 APP1LIBS=\
91 $(SLB)$/pdfmisc.lib \
92 $(SLB)$/pdfparse.lib \
93 $(SLB)$/pdfsax.lib \
94 $(SLB)$/pdfparsetree.lib \
95 $(SLB)$/pdfodf.lib \
96 $(SLB)$/xpdfwrapper.lib \
97 $(SLB)$/pdfimport.lib
99 APP1STDLIBS=\
100 $(BASEGFXLIB) \
101 $(UNOTOOLSLIB) \
102 $(CANVASTOOLSLIB) \
103 $(COMPHELPERLIB) \
104 $(CPPUHELPERLIB) \
105 $(CPPUNITLIB) \
106 $(ZLIB3RDLIB) \
107 $(CPPULIB) \
108 $(SALLIB)
110 # --- pdfunzip binary ------------------------------------------------------
112 TARGET3=pdfunzip
114 APP2TARGET=$(TARGET3)
115 APP2LIBSALCPPRT=
116 APP2OBJS=$(SLO)$/pdfunzip.obj
118 APP2LIBS=\
119 $(SLB)$/pdfmisc.lib \
120 $(SLB)$/pdfparse.lib \
121 $(SLB)$/pdfsax.lib \
122 $(SLB)$/pdfparsetree.lib \
123 $(SLB)$/pdfodf.lib \
124 $(SLB)$/xpdfwrapper.lib \
125 $(SLB)$/pdfimport.lib
127 APP2STDLIBS=\
128 $(BASEGFXLIB) \
129 $(UNOTOOLSLIB) \
130 $(CANVASTOOLSLIB) \
131 $(COMPHELPERLIB) \
132 $(CPPUHELPERLIB) \
133 $(CPPUNITLIB) \
134 $(ZLIB3RDLIB) \
135 $(CPPULIB) \
136 $(SALLIB)
138 # --- Targets ------------------------------------------------------
140 .INCLUDE : target.mk
141 .INCLUDE : _cppunit.mk
143 # --- Fake uno bootstrap & copy testfile ------------------------
145 $(BIN)$/pdfi_unittest_test.pdf : testinput.pdf
146 rm -f $@
147 $(GNUCOPY) testinput.pdf $@
149 $(BIN)$/pdfi_unittest_test.ini : makefile.mk
150 rm -f $@
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)
163 $(TOUCH) $@
165 #ALLTAR : $(MISC)$/pdfi_unittest_succeeded