update dev300-m58
[ooovba.git] / unoxml / test / makefile.mk
blob781f8a46bf965f74843932deeef72740ea21d08a
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.9 $
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=..
34 PRJNAME=unoxml
35 TARGET=tests
36 TARGETTYPE=GUI
38 ENABLE_EXCEPTIONS=TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE : settings.mk
44 # --- Common ----------------------------------------------------------
46 # BEGIN ----------------------------------------------------------------
47 # auto generated Target:tests by codegen.pl
48 SHL1OBJS= \
49 $(SLO)$/domtest.obj
51 # the following three libs are a bit of a hack: cannot link against
52 # unoxml here, because not yet delivered (and does not export
53 # ~anything). Need the functionality to test, so we're linking it in
54 # statically. Need to keep this in sync with
55 # source/services/makefile.mk
56 SHL1LIBS= \
57 $(SLB)$/domimpl.lib \
58 $(SLB)$/xpathimpl.lib \
59 $(SLB)$/eventsimpl.lib
61 SHL1TARGET= tests
62 SHL1STDLIBS= \
63 $(UCBHELPERLIB) \
64 $(LIBXML2LIB) \
65 $(TOOLSLIB) \
66 $(COMPHELPERLIB) \
67 $(CPPUHELPERLIB) \
68 $(CPPUNITLIB) \
69 $(CPPULIB) \
70 $(SAXLIB) \
71 $(SALLIB)\
72 $(EXPATASCII3RDLIB)
74 SHL1IMPLIB= i$(SHL1TARGET)
76 DEF1NAME =$(SHL1TARGET)
77 SHL1VERSIONMAP = export.map
79 # END ------------------------------------------------------------------
81 #------------------------------- All object files -------------------------------
82 # do this here, so we get right dependencies
83 SLOFILES=$(SHL1OBJS)
85 # --- Targets ------------------------------------------------------
87 .INCLUDE : target.mk
88 .INCLUDE : _cppunit.mk
90 # --- Fake uno bootstrap ------------------------
92 $(BIN)$/unoxml_unittest_test.ini : makefile.mk
93 rm -f $@
94 @echo UNO_SERVICES= > $@
95 @echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@
97 # --- Enable testshl2 execution in normal build ------------------------
99 $(MISC)$/unoxml_unittest_succeeded : $(SHL1TARGETN) $(BIN)$/unoxml_unittest_test.ini
100 @echo ----------------------------------------------------------
101 @echo - start unit test on library $(SHL1TARGETN)
102 @echo ----------------------------------------------------------
103 testshl2 -forward $(BIN)$/ -sf $(mktmp ) $(SHL1TARGETN)
104 $(TOUCH) $@
106 ALLTAR : $(MISC)$/unoxml_unittest_succeeded