xref: /aoo41x/main/basebmp/test/makefile.mk (revision 336e7b3a)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=basebmp
31TARGET=tests
32TARGETTYPE=GUI
33
34ENABLE_EXCEPTIONS=TRUE
35
36.IF "$(GUI)" == "OS2"
37
38@all:
39	@echo "Skipping, cppunit broken."
40
41.ELSE
42
43# --- Settings -----------------------------------------------------
44
45.INCLUDE :  settings.mk
46
47.IF "$(debug)"!="" || "$(DEBUG)"!=""
48
49.IF "$(COM)"=="MSC"
50# disable inlining for MSVC
51CFLAGS += -Ob0
52.ENDIF
53
54.IF "$(COM)"=="GCC"
55# disable inlining for gcc
56CFLAGS += -fno-inline
57.ENDIF
58
59.ENDIF
60
61# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
62# if compiled with default -xalias_level (and optimization level -xO3)
63.IF "$(OS)"=="SOLARIS"
64# For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
65.IF "$(CCNUMVER)"!="00050005"
66CDEFS+=-xalias_level=compatible
67.ENDIF
68.ENDIF
69
70#building with stlport, but cppunit was not built with stlport
71.IF "$(USE_SYSTEM_STL)"!="YES"
72.IF "$(SYSTEM_CPPUNIT)"=="YES"
73CFLAGSCXX+=-DADAPT_EXT_STL
74.ENDIF
75.ENDIF
76
77CFLAGSCXX += $(CPPUNIT_CFLAGS)
78
79# --- Common ----------------------------------------------------------
80.IF "$(L10N_framework)"==""
81
82# BEGIN ----------------------------------------------------------------
83# auto generated Target:tests by codegen.pl
84SHL1OBJS=  \
85	$(SLO)$/basictest.obj		\
86	$(SLO)$/bmpmasktest.obj		\
87	$(SLO)$/bmptest.obj		    \
88	$(SLO)$/cliptest.obj		\
89	$(SLO)$/filltest.obj		\
90	$(SLO)$/linetest.obj		\
91	$(SLO)$/masktest.obj		\
92	$(SLO)$/polytest.obj		\
93	$(SLO)$/tools.obj
94SHL1TARGET= tests
95SHL1STDLIBS=    $(BASEBMPLIB) \
96                $(SALLIB)		 \
97				$(CPPUNITLIB)	 \
98				$(BASEGFXLIB)
99
100SHL1IMPLIB= i$(SHL1TARGET)
101
102DEF1NAME    =$(SHL1TARGET)
103SHL1VERSIONMAP = export.map
104SHL1RPATH = NONE
105
106.ENDIF
107# END ------------------------------------------------------------------
108
109#APP2TARGET= bmpdemo
110
111#APP2OBJS=	\
112#	$(OBJ)$/bmpdemo.obj
113
114#APP2STDLIBS=$(TOOLSLIB) 		\
115#			$(COMPHELPERLIB)	\
116#			$(BASEGFXLIB)	    \
117#			$(BASEBMPLIB)	    \
118#			$(CPPULIB)			\
119#			$(CPPUHELPERLIB)	\
120#			$(UCBHELPERLIB)		\
121#			$(SALLIB)			\
122#			$(VCLLIB)
123#
124#.IF "$(GUI)"!="UNX"
125#APP2DEF=	$(MISC)$/$(TARGET).def
126#.ENDIF
127
128#------------------------------- All object files -------------------------------
129# do this here, so we get right dependencies
130SLOFILES=$(SHL1OBJS)
131
132# --- Targets ------------------------------------------------------
133
134.INCLUDE : target.mk
135
136# --- Enable test execution in normal build ------------------------
137.IF "$(L10N_framework)"==""
138.INCLUDE : _cppunit.mk
139.ENDIF
140
141.ENDIF # "$(GUI)" == "OS2"
142