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" || "$(GUI)" == "OS2" 33 34@all: 35.IF "$(GUI)" == "OS2" 36 @echo "Skipping, cppunit broken." 37.ELIF "$(WITH_CPPUNIT)" != "YES" 38 @echo "cppunit disabled. nothing do do." 39.END 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