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 "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 37 38@all: 39.IF "$(GUI)" == "OS2" 40 @echo "Skipping, cppunit broken." 41.ELIF "$(WITH_CPPUNIT)" != "YES" 42 @echo "cppunit disabled. nothing do do." 43.END 44 45.ELSE 46 47# --- Settings ----------------------------------------------------- 48 49.INCLUDE : settings.mk 50 51.IF "$(debug)"!="" || "$(DEBUG)"!="" 52 53.IF "$(COM)"=="MSC" 54# disable inlining for MSVC 55CFLAGS += -Ob0 56.ENDIF 57 58.IF "$(COM)"=="GCC" 59# disable inlining for gcc 60CFLAGS += -fno-inline 61.ENDIF 62 63.ENDIF 64 65# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail 66# if compiled with default -xalias_level (and optimization level -xO3) 67.IF "$(OS)"=="SOLARIS" 68# For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx 69.IF "$(CCNUMVER)"!="00050005" 70CDEFS+=-xalias_level=compatible 71.ENDIF 72.ENDIF 73 74#building with stlport, but cppunit was not built with stlport 75.IF "$(USE_SYSTEM_STL)"!="YES" 76.IF "$(SYSTEM_CPPUNIT)"=="YES" 77CFLAGSCXX+=-DADAPT_EXT_STL 78.ENDIF 79.ENDIF 80 81CFLAGSCXX += $(CPPUNIT_CFLAGS) 82 83# --- Common ---------------------------------------------------------- 84.IF "$(L10N_framework)"=="" 85 86# BEGIN ---------------------------------------------------------------- 87# auto generated Target:tests by codegen.pl 88SHL1OBJS= \ 89 $(SLO)$/basictest.obj \ 90 $(SLO)$/bmpmasktest.obj \ 91 $(SLO)$/bmptest.obj \ 92 $(SLO)$/cliptest.obj \ 93 $(SLO)$/filltest.obj \ 94 $(SLO)$/linetest.obj \ 95 $(SLO)$/masktest.obj \ 96 $(SLO)$/polytest.obj \ 97 $(SLO)$/tools.obj 98SHL1TARGET= tests 99SHL1STDLIBS= $(BASEBMPLIB) \ 100 $(SALLIB) \ 101 $(CPPUNITLIB) \ 102 $(BASEGFXLIB) 103 104SHL1IMPLIB= i$(SHL1TARGET) 105 106DEF1NAME =$(SHL1TARGET) 107SHL1VERSIONMAP = export.map 108SHL1RPATH = NONE 109 110.ENDIF 111# END ------------------------------------------------------------------ 112 113#APP2TARGET= bmpdemo 114 115#APP2OBJS= \ 116# $(OBJ)$/bmpdemo.obj 117 118#APP2STDLIBS=$(TOOLSLIB) \ 119# $(COMPHELPERLIB) \ 120# $(BASEGFXLIB) \ 121# $(BASEBMPLIB) \ 122# $(CPPULIB) \ 123# $(CPPUHELPERLIB) \ 124# $(UCBHELPERLIB) \ 125# $(SALLIB) \ 126# $(VCLLIB) 127# 128#.IF "$(GUI)"!="UNX" 129#APP2DEF= $(MISC)$/$(TARGET).def 130#.ENDIF 131 132#------------------------------- All object files ------------------------------- 133# do this here, so we get right dependencies 134SLOFILES=$(SHL1OBJS) 135 136# --- Targets ------------------------------------------------------ 137 138.INCLUDE : target.mk 139 140# --- Enable test execution in normal build ------------------------ 141.IF "$(L10N_framework)"=="" 142.INCLUDE : _cppunit.mk 143.ENDIF 144 145.ENDIF # "$(GUI)" == "OS2" 146