merge the formfield patch from ooo-build
[ooovba.git] / basebmp / test / makefile.mk
blob3ea13868aeb4e0251656398650710c23dfd91ef3
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=basebmp
35 TARGET=tests
36 TARGETTYPE=GUI
38 ENABLE_EXCEPTIONS=TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE : settings.mk
44 .IF "$(debug)"!="" || "$(DEBUG)"!=""
46 .IF "$(COM)"=="MSC"
47 # disable inlining for MSVC
48 CFLAGS += -Ob0
49 .ENDIF
51 .IF "$(COM)"=="GCC"
52 # disable inlining for gcc
53 CFLAGS += -fno-inline
54 .ENDIF
56 .ENDIF
58 # SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail
59 # if compiled with default -xalias_level (and optimization level -xO3)
60 .IF "$(OS)"=="SOLARIS"
61 # For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx
62 .IF "$(CCNUMVER)"!="00050005"
63 CDEFS+=-xalias_level=compatible
64 .ENDIF
65 .ENDIF
67 # --- Common ----------------------------------------------------------
68 .IF "$(L10N_framework)"==""
70 # BEGIN ----------------------------------------------------------------
71 # auto generated Target:tests by codegen.pl
72 SHL1OBJS= \
73 $(SLO)$/basictest.obj \
74 $(SLO)$/bmpmasktest.obj \
75 $(SLO)$/bmptest.obj \
76 $(SLO)$/cliptest.obj \
77 $(SLO)$/filltest.obj \
78 $(SLO)$/linetest.obj \
79 $(SLO)$/masktest.obj \
80 $(SLO)$/polytest.obj \
81 $(SLO)$/tools.obj \
82 $(SLO)$/bitmapdevice.obj \
83 $(SLO)$/debug.obj \
84 $(SLO)$/polypolygonrenderer.obj
85 # last three objs are a bit of a hack: cannot link against LIBBASEBMP
86 # here, because not yet delivered. Need the functionality to test, so
87 # we're linking it in statically. Need to keep this in sync with
88 # source/makefile.mk
89 SHL1TARGET= tests
90 SHL1STDLIBS= $(SALLIB) \
91 $(CPPUNITLIB) \
92 $(BASEGFXLIB)
94 SHL1IMPLIB= i$(SHL1TARGET)
96 DEF1NAME =$(SHL1TARGET)
97 SHL1VERSIONMAP = export.map
98 .ENDIF
99 # END ------------------------------------------------------------------
101 #APP2TARGET= bmpdemo
103 #APP2OBJS= \
104 # $(OBJ)$/bmpdemo.obj
106 #APP2STDLIBS=$(TOOLSLIB) \
107 # $(COMPHELPERLIB) \
108 # $(BASEGFXLIB) \
109 # $(BASEBMPLIB) \
110 # $(CPPULIB) \
111 # $(CPPUHELPERLIB) \
112 # $(UCBHELPERLIB) \
113 # $(SALLIB) \
114 # $(VCLLIB)
116 #.IF "$(GUI)"!="UNX"
117 #APP2DEF= $(MISC)$/$(TARGET).def
118 #.ENDIF
120 #------------------------------- All object files -------------------------------
121 # do this here, so we get right dependencies
122 SLOFILES=$(SHL1OBJS)
124 # --- Targets ------------------------------------------------------
126 .INCLUDE : target.mk
127 .INCLUDE : _cppunit.mk
129 # --- Enable test execution in normal build ------------------------
130 .IF "$(L10N_framework)"==""
132 unittest : $(SHL1TARGETN)
133 @echo ----------------------------------------------------------
134 @echo - start unit test on library $(SHL1TARGETN)
135 @echo ----------------------------------------------------------
136 $(TESTSHL2) -sf $(mktmp ) $(SHL1TARGETN)
138 ALLTAR : unittest
139 .ENDIF