merge the formfield patch from ooo-build
[ooovba.git] / filter / source / svg / test / makefile.mk
blob1d743c61db7438794af215c0f2a4615e341c7297
1 #*************************************************************************
3 # OpenOffice.org - a multi-platform office productivity suite
5 # Author:
6 # Fridrich Strba <fridrich.strba@bluewin.ch>
7 # Thorsten Behrens <tbehrens@novell.com>
9 # Copyright (C) 2008, Novell Inc.
10 # Parts copyright 2005 by Sun Microsystems, Inc.
12 # The Contents of this file are made available subject to
13 # the terms of GNU Lesser General Public License Version 2.1.
15 #*************************************************************************
17 PRJ=..$/..$/..
18 PRJNAME=filter
19 TARGET=tests
20 TARGETTYPE=CUI
21 ENABLE_EXCEPTIONS=TRUE
23 # --- Settings -----------------------------------------------------
25 .INCLUDE: settings.mk
27 # --- unit tests ---------------------------------------------------
29 SHL1OBJS= \
30 $(SLO)$/parsertest.obj
32 SHL1TARGET= tests
33 SHL1LIBS= $(SLB)$/svgfilter.lib
34 SHL1STDLIBS= \
35 $(BASEGFXLIB) \
36 $(SVXLIB) \
37 $(SVTOOLLIB) \
38 $(XMLOFFLIB) \
39 $(BASEGFXLIB) \
40 $(VCLLIB) \
41 $(UNOTOOLSLIB) \
42 $(TOOLSLIB) \
43 $(COMPHELPERLIB) \
44 $(SVTOOLLIB) \
45 $(CPPUHELPERLIB) \
46 $(CPPULIB) \
47 $(SALLIB) \
48 $(LIBXML) \
49 $(CPPUNITLIB)
51 # --- svg2xml binary ------------------------------------------------------
53 TARGET2=svg2odf
55 APP1TARGET=$(TARGET2)
56 APP1LIBSALCPPRT=
57 APP1OBJS= \
58 $(SLO)$/odfserializer.obj \
59 $(SLO)$/svg2odf.obj
61 APP1LIBS=\
62 $(SLB)$/svgfilter.lib
64 APP1STDLIBS=\
65 $(BASEGFXLIB) \
66 $(SVXLIB) \
67 $(XMLOFFLIB) \
68 $(BASEGFXLIB) \
69 $(VCLLIB) \
70 $(UNOTOOLSLIB) \
71 $(TOOLSLIB) \
72 $(COMPHELPERLIB) \
73 $(CPPUHELPERLIB) \
74 $(CPPULIB) \
75 $(SALLIB) \
76 $(LIBXML)
78 # --- Targets ------------------------------------------------------
80 .INCLUDE : target.mk
81 .INCLUDE : _cppunit.mk
83 # --- Special ------------------------------------------------------
85 TESTFILES=\
86 anarchist.svg \
87 anarchist2.svg \
88 Nested.svg
90 $(MISC)$/%_svgi_unittest_succeeded : $(BIN)$/svg2odf
91 rm -f $(MISC)$/$(@:s/_succeeded/.xml/:f)
92 $(BIN)$/svg2odf $(@:s/_svgi_unittest_succeeded/.svg/:f) $(MISC)$/$(@:s/_succeeded/.xml/:f) $(BIN)$/svgi_unittest_test.ini
93 $(TOUCH) $@
95 .IF "$(GUI)" == "WNT"
96 SAXPARSERLIB=$(SOLARBINDIR)$/sax.uno$(DLLPOST)
97 UNOXMLLIB=$(SOLARBINDIR)$/$(DLLPRE)unoxml$(OFFICEUPD)$(DLLPOSTFIX)$(DLLPOST)
98 .ELSE
99 SAXPARSERLIB=$(SOLARLIBDIR)$/sax.uno$(DLLPOST)
100 UNOXMLLIB=$(SOLARLIBDIR)$/$(DLLPRE)unoxml$(OFFICEUPD)$(DLLPOSTFIX)$(DLLPOST)
101 .ENDIF
103 $(BIN)$/unittestservices.rdb : makefile.mk $(SAXPARSERLIB) $(UNOXMLLIB)
104 rm -f $@
105 $(REGCOMP) -register -r $@ -c $(SAXPARSERLIB)
106 $(REGCOMP) -register -r $@ -c $(UNOXMLLIB)
108 $(BIN)$/svgi_unittest_test.ini : makefile.mk
109 rm -f $@
110 @echo UNO_SERVICES=$(BIN)$/unittestservices.rdb > $@
111 @echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@
113 ALLTAR : $(BIN)$/svgi_unittest_test.ini \
114 $(BIN)$/unittestservices.rdb \
115 $(foreach,i,$(TESTFILES:s/.svg/_svgi_unittest_succeeded/:f) $(MISC)$/$i)