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