update dev300-m58
[ooovba.git] / basebmp / test / makefile.mk
blob7d0dc6e3967a4801967380792ecffcd0a0957b7f
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 ----------------------------------------------------------
69 # BEGIN ----------------------------------------------------------------
70 # auto generated Target:tests by codegen.pl
71 SHL1OBJS= \
72 $(SLO)$/basictest.obj \
73 $(SLO)$/bmpmasktest.obj \
74 $(SLO)$/bmptest.obj \
75 $(SLO)$/cliptest.obj \
76 $(SLO)$/filltest.obj \
77 $(SLO)$/linetest.obj \
78 $(SLO)$/masktest.obj \
79 $(SLO)$/polytest.obj \
80 $(SLO)$/tools.obj \
81 $(SLO)$/bitmapdevice.obj \
82 $(SLO)$/debug.obj \
83 $(SLO)$/polypolygonrenderer.obj
84 # last three objs are a bit of a hack: cannot link against LIBBASEBMP
85 # here, because not yet delivered. Need the functionality to test, so
86 # we're linking it in statically. Need to keep this in sync with
87 # source/makefile.mk
89 SHL1TARGET= tests
90 SHL1STDLIBS= $(SALLIB) \
91 $(CPPUNITLIB) \
92 $(BASEGFXLIB)
94 SHL1IMPLIB= i$(SHL1TARGET)
96 DEF1NAME =$(SHL1TARGET)
97 SHL1VERSIONMAP = export.map
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 ------------------------
131 unittest : $(SHL1TARGETN)
132 @echo ----------------------------------------------------------
133 @echo - start unit test on library $(SHL1TARGETN)
134 @echo ----------------------------------------------------------
135 $(TESTSHL2) -sf $(mktmp ) $(SHL1TARGETN)
137 ALLTAR : unittest