1 #*************************************************************************
3 # OpenOffice.org - a multi-platform office productivity suite
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 #*************************************************************************
21 ENABLE_EXCEPTIONS
=TRUE
23 # --- Settings -----------------------------------------------------
27 # --- unit tests ---------------------------------------------------
30 $(SLO
)$/parsertest.obj
33 SHL1LIBS
= $(SLB
)$/svgfilter.lib
51 # --- svg2xml binary ------------------------------------------------------
58 $(SLO
)$/odfserializer.obj \
78 # --- Targets ------------------------------------------------------
81 .INCLUDE
: _cppunit.mk
83 # --- Special ------------------------------------------------------
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
96 SAXPARSERLIB
=$(SOLARBINDIR
)$/sax.uno
$(DLLPOST
)
97 UNOXMLLIB
=$(SOLARBINDIR
)$/$(DLLPRE
)unoxml
$(OFFICEUPD
)$(DLLPOSTFIX
)$(DLLPOST
)
99 SAXPARSERLIB
=$(SOLARLIBDIR
)$/sax.uno
$(DLLPOST
)
100 UNOXMLLIB
=$(SOLARLIBDIR
)$/$(DLLPRE
)unoxml
$(OFFICEUPD
)$(DLLPOSTFIX
)$(DLLPOST
)
103 $(BIN
)$/unittestservices.rdb
: makefile.mk
$(SAXPARSERLIB
) $(UNOXMLLIB
)
105 $(REGCOMP
) -register
-r
$@
-c
$(SAXPARSERLIB
)
106 $(REGCOMP
) -register
-r
$@
-c
$(UNOXMLLIB
)
108 $(BIN
)$/svgi_unittest_test.ini
: makefile.mk
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)