1*b1cdbd2cSJim Jagielski#************************************************************** 2*b1cdbd2cSJim Jagielski# 3*b1cdbd2cSJim Jagielski# Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski# or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski# distributed with this work for additional information 6*b1cdbd2cSJim Jagielski# regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski# to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski# "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski# with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski# 11*b1cdbd2cSJim Jagielski# http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski# 13*b1cdbd2cSJim Jagielski# Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski# software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski# KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski# specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski# under the License. 19*b1cdbd2cSJim Jagielski# 20*b1cdbd2cSJim Jagielski#************************************************************** 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim JagielskiPRJ=.. 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim JagielskiPRJNAME=basebmp 27*b1cdbd2cSJim JagielskiTARGET=tests 28*b1cdbd2cSJim JagielskiTARGETTYPE=GUI 29*b1cdbd2cSJim Jagielski 30*b1cdbd2cSJim JagielskiENABLE_EXCEPTIONS=TRUE 31*b1cdbd2cSJim Jagielski 32*b1cdbd2cSJim Jagielski.IF "$(WITH_CPPUNIT)" != "YES" 33*b1cdbd2cSJim Jagielski 34*b1cdbd2cSJim Jagielski@all: 35*b1cdbd2cSJim Jagielski @echo "cppunit disabled. nothing do do." 36*b1cdbd2cSJim Jagielski 37*b1cdbd2cSJim Jagielski.ELSE 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski# --- Settings ----------------------------------------------------- 40*b1cdbd2cSJim Jagielski 41*b1cdbd2cSJim Jagielski.INCLUDE : settings.mk 42*b1cdbd2cSJim Jagielski 43*b1cdbd2cSJim Jagielski.IF "$(debug)"!="" || "$(DEBUG)"!="" 44*b1cdbd2cSJim Jagielski 45*b1cdbd2cSJim Jagielski.IF "$(COM)"=="MSC" 46*b1cdbd2cSJim Jagielski# disable inlining for MSVC 47*b1cdbd2cSJim JagielskiCFLAGS += -Ob0 48*b1cdbd2cSJim Jagielski.ENDIF 49*b1cdbd2cSJim Jagielski 50*b1cdbd2cSJim Jagielski.IF "$(COM)"=="GCC" 51*b1cdbd2cSJim Jagielski# disable inlining for gcc 52*b1cdbd2cSJim JagielskiCFLAGS += -fno-inline 53*b1cdbd2cSJim Jagielski.ENDIF 54*b1cdbd2cSJim Jagielski 55*b1cdbd2cSJim Jagielski.ENDIF 56*b1cdbd2cSJim Jagielski 57*b1cdbd2cSJim Jagielski# SunStudio 12 (-m64 and -m32 modes): three test cases of the unit tests fail 58*b1cdbd2cSJim Jagielski# if compiled with default -xalias_level (and optimization level -xO3) 59*b1cdbd2cSJim Jagielski.IF "$(OS)"=="SOLARIS" 60*b1cdbd2cSJim Jagielski# For Sun Studio 8 this switch does not work: compilation fails on bitmapdevice.cxx 61*b1cdbd2cSJim Jagielski.IF "$(CCNUMVER)"!="00050005" 62*b1cdbd2cSJim JagielskiCDEFS+=-xalias_level=compatible 63*b1cdbd2cSJim Jagielski.ENDIF 64*b1cdbd2cSJim Jagielski.ENDIF 65*b1cdbd2cSJim Jagielski 66*b1cdbd2cSJim JagielskiCFLAGSCXX += $(CPPUNIT_CFLAGS) 67*b1cdbd2cSJim Jagielski 68*b1cdbd2cSJim Jagielski# --- Common ---------------------------------------------------------- 69*b1cdbd2cSJim Jagielski.IF "$(L10N_framework)"=="" 70*b1cdbd2cSJim Jagielski 71*b1cdbd2cSJim Jagielski# BEGIN ---------------------------------------------------------------- 72*b1cdbd2cSJim Jagielski# auto generated Target:tests by codegen.pl 73*b1cdbd2cSJim JagielskiSHL1OBJS= \ 74*b1cdbd2cSJim Jagielski $(SLO)$/basictest.obj \ 75*b1cdbd2cSJim Jagielski $(SLO)$/bmpmasktest.obj \ 76*b1cdbd2cSJim Jagielski $(SLO)$/bmptest.obj \ 77*b1cdbd2cSJim Jagielski $(SLO)$/cliptest.obj \ 78*b1cdbd2cSJim Jagielski $(SLO)$/filltest.obj \ 79*b1cdbd2cSJim Jagielski $(SLO)$/linetest.obj \ 80*b1cdbd2cSJim Jagielski $(SLO)$/masktest.obj \ 81*b1cdbd2cSJim Jagielski $(SLO)$/polytest.obj \ 82*b1cdbd2cSJim Jagielski $(SLO)$/tools.obj 83*b1cdbd2cSJim JagielskiSHL1TARGET= tests 84*b1cdbd2cSJim JagielskiSHL1STDLIBS= $(BASEBMPLIB) \ 85*b1cdbd2cSJim Jagielski $(SALLIB) \ 86*b1cdbd2cSJim Jagielski $(CPPUNITLIB) \ 87*b1cdbd2cSJim Jagielski $(BASEGFXLIB) 88*b1cdbd2cSJim Jagielski 89*b1cdbd2cSJim JagielskiSHL1IMPLIB= i$(SHL1TARGET) 90*b1cdbd2cSJim Jagielski 91*b1cdbd2cSJim JagielskiDEF1NAME =$(SHL1TARGET) 92*b1cdbd2cSJim JagielskiSHL1VERSIONMAP = export.map 93*b1cdbd2cSJim JagielskiSHL1RPATH = NONE 94*b1cdbd2cSJim Jagielski 95*b1cdbd2cSJim Jagielski.ENDIF 96*b1cdbd2cSJim Jagielski# END ------------------------------------------------------------------ 97*b1cdbd2cSJim Jagielski 98*b1cdbd2cSJim Jagielski#APP2TARGET= bmpdemo 99*b1cdbd2cSJim Jagielski 100*b1cdbd2cSJim Jagielski#APP2OBJS= \ 101*b1cdbd2cSJim Jagielski# $(OBJ)$/bmpdemo.obj 102*b1cdbd2cSJim Jagielski 103*b1cdbd2cSJim Jagielski#APP2STDLIBS=$(TOOLSLIB) \ 104*b1cdbd2cSJim Jagielski# $(COMPHELPERLIB) \ 105*b1cdbd2cSJim Jagielski# $(BASEGFXLIB) \ 106*b1cdbd2cSJim Jagielski# $(BASEBMPLIB) \ 107*b1cdbd2cSJim Jagielski# $(CPPULIB) \ 108*b1cdbd2cSJim Jagielski# $(CPPUHELPERLIB) \ 109*b1cdbd2cSJim Jagielski# $(UCBHELPERLIB) \ 110*b1cdbd2cSJim Jagielski# $(SALLIB) \ 111*b1cdbd2cSJim Jagielski# $(VCLLIB) 112*b1cdbd2cSJim Jagielski# 113*b1cdbd2cSJim Jagielski#.IF "$(GUI)"!="UNX" 114*b1cdbd2cSJim Jagielski#APP2DEF= $(MISC)$/$(TARGET).def 115*b1cdbd2cSJim Jagielski#.ENDIF 116*b1cdbd2cSJim Jagielski 117*b1cdbd2cSJim Jagielski#------------------------------- All object files ------------------------------- 118*b1cdbd2cSJim Jagielski# do this here, so we get right dependencies 119*b1cdbd2cSJim JagielskiSLOFILES=$(SHL1OBJS) 120*b1cdbd2cSJim Jagielski 121*b1cdbd2cSJim Jagielski# --- Targets ------------------------------------------------------ 122*b1cdbd2cSJim Jagielski 123*b1cdbd2cSJim Jagielski.INCLUDE : target.mk 124*b1cdbd2cSJim Jagielski 125*b1cdbd2cSJim Jagielski# --- Enable test execution in normal build ------------------------ 126*b1cdbd2cSJim Jagielski.IF "$(L10N_framework)"=="" 127*b1cdbd2cSJim Jagielski.INCLUDE : _cppunit.mk 128*b1cdbd2cSJim Jagielski.ENDIF 129*b1cdbd2cSJim Jagielski 130*b1cdbd2cSJim Jagielski.ENDIF # "$(WITH_CPPUNIT)" != "YES" 131