xref: /aoo42x/main/unoxml/test/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25
26PRJNAME=unoxml
27TARGET=tests
28TARGETTYPE=GUI
29
30ENABLE_EXCEPTIONS=TRUE
31
32# --- Settings -----------------------------------------------------
33
34.INCLUDE :  settings.mk
35
36CFLAGSCXX += $(CPPUNIT_CFLAGS)
37
38# --- Common ----------------------------------------------------------
39
40# BEGIN ----------------------------------------------------------------
41# auto generated Target:tests by codegen.pl
42SHL1OBJS=  \
43	$(SLO)$/domtest.obj
44
45# the following three libs are a bit of a hack: cannot link against
46# unoxml here, because not yet delivered (and does not export
47# ~anything). Need the functionality to test, so we're linking it in
48# statically. Need to keep this in sync with
49# source/services/makefile.mk
50SHL1LIBS= \
51    $(SLB)$/domimpl.lib \
52    $(SLB)$/xpathimpl.lib \
53    $(SLB)$/eventsimpl.lib
54
55SHL1TARGET= tests
56SHL1STDLIBS= \
57    $(UCBHELPERLIB) \
58    $(LIBXML2LIB) \
59	$(TOOLSLIB)	\
60	$(COMPHELPERLIB)	\
61	$(CPPUHELPERLIB)	\
62	$(CPPUNITLIB)	 \
63        $(TESTSHL2LIB)    \
64	$(CPPULIB)	\
65	$(SAXLIB) \
66	$(SALLIB)\
67	$(EXPATASCII3RDLIB)
68
69SHL1IMPLIB= i$(SHL1TARGET)
70
71DEF1NAME    =$(SHL1TARGET)
72SHL1VERSIONMAP = export.map
73
74# END ------------------------------------------------------------------
75
76#------------------------------- All object files -------------------------------
77# do this here, so we get right dependencies
78SLOFILES=$(SHL1OBJS)
79
80# --- Targets ------------------------------------------------------
81
82.INCLUDE : target.mk
83.INCLUDE : _cppunit.mk
84
85# --- Fake uno bootstrap ------------------------
86
87$(BIN)$/unoxml_unittest_test.ini : makefile.mk
88	rm -f $@
89	@echo UNO_SERVICES= > $@
90	@echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@
91
92# --- Enable testshl2 execution in normal build ------------------------
93
94$(MISC)$/unoxml_unittest_succeeded : $(SHL1TARGETN) $(BIN)$/unoxml_unittest_test.ini
95		@echo ----------------------------------------------------------
96		@echo - start unit test on library $(SHL1TARGETN)
97		@echo ----------------------------------------------------------
98                $(TESTSHL2) -forward $(BIN)$/ -sf $(mktmp ) $(SHL1TARGETN)
99		$(TOUCH) $@
100
101ALLTAR : $(MISC)$/unoxml_unittest_succeeded
102