xref: /aoo4110/main/o3tl/qa/makefile.mk (revision b1cdbd2c)
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
24.IF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
25
26@all:
27.IF "$(GUI)" == "OS2"
28	@echo "Skipping, cppunit broken."
29.ELIF "$(WITH_CPPUNIT)" != "YES"
30	@echo "cppunit disabled. nothing do do."
31.END
32
33.ELSE # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
34
35PRJ=..
36
37PRJNAME=o3tl
38TARGET=tests
39
40ENABLE_EXCEPTIONS=TRUE
41
42# --- Settings -----------------------------------------------------
43
44.INCLUDE :  settings.mk
45
46#building with stlport, but cppunit was not built with stlport
47.IF "$(USE_SYSTEM_STL)"!="YES"
48.IF "$(SYSTEM_CPPUNIT)"=="YES"
49CFLAGSCXX+=-DADAPT_EXT_STL
50.ENDIF
51.ENDIF
52
53CFLAGSCXX += $(CPPUNIT_CFLAGS)
54
55.IF "$(L10N_framework)"==""
56# --- Common ----------------------------------------------------------
57
58# BEGIN ----------------------------------------------------------------
59SHL1OBJS=  \
60	$(SLO)$/cow_wrapper_clients.obj     \
61	$(SLO)$/test-cow_wrapper.obj	    \
62    $(SLO)$/test-vector_pool.obj	\
63    $(SLO)$/test-heap_ptr.obj           \
64    $(SLO)$/test-range.obj
65
66SHL1TARGET= tests
67SHL1STDLIBS= 	$(SALLIB)		 \
68				$(CPPUNITLIB)
69
70SHL1IMPLIB= i$(SHL1TARGET)
71
72DEF1NAME    =$(SHL1TARGET)
73SHL1VERSIONMAP = export.map
74SHL1RPATH = NONE
75
76# END ------------------------------------------------------------------
77
78#------------------------------- All object files -------------------------------
79# do this here, so we get right dependencies
80SLOFILES=$(SHL1OBJS)
81
82# --- Targets ------------------------------------------------------
83.ENDIF 		# L10N_framework
84
85.INCLUDE : target.mk
86
87# --- Enable test execution in normal build ------------------------
88.IF "$(L10N_framework)"==""
89.INCLUDE : _cppunit.mk
90.ENDIF 		# L10N_framework
91
92.ENDIF # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2"
93