1*7871dc3eSAndrew Rist#************************************************************** 2cdf0e10cSrcweir# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19cdf0e10cSrcweir# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24828da808SPedro Giffuni.IF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 255e7a3e64SPedro Giffuni 265e7a3e64SPedro Giffuni@all: 27828da808SPedro Giffuni.IF "$(GUI)" == "OS2" 285e7a3e64SPedro Giffuni @echo "Skipping, cppunit broken." 29828da808SPedro Giffuni.ELIF "$(WITH_CPPUNIT)" != "YES" 30828da808SPedro Giffuni @echo "cppunit disabled. nothing do do." 31828da808SPedro Giffuni.END 325e7a3e64SPedro Giffuni 33828da808SPedro Giffuni.ELSE # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 345e7a3e64SPedro Giffuni 35cdf0e10cSrcweirPRJ=.. 36cdf0e10cSrcweir 37cdf0e10cSrcweirPRJNAME=o3tl 38cdf0e10cSrcweirTARGET=tests 39cdf0e10cSrcweir 40cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 41cdf0e10cSrcweir 42cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 43cdf0e10cSrcweir 44cdf0e10cSrcweir.INCLUDE : settings.mk 45cdf0e10cSrcweir 46cdf0e10cSrcweir#building with stlport, but cppunit was not built with stlport 47cdf0e10cSrcweir.IF "$(USE_SYSTEM_STL)"!="YES" 48cdf0e10cSrcweir.IF "$(SYSTEM_CPPUNIT)"=="YES" 49cdf0e10cSrcweirCFLAGSCXX+=-DADAPT_EXT_STL 50cdf0e10cSrcweir.ENDIF 51cdf0e10cSrcweir.ENDIF 52cdf0e10cSrcweir 53cdf0e10cSrcweirCFLAGSCXX += $(CPPUNIT_CFLAGS) 54cdf0e10cSrcweir 55cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 56cdf0e10cSrcweir# --- Common ---------------------------------------------------------- 57cdf0e10cSrcweir 58cdf0e10cSrcweir# BEGIN ---------------------------------------------------------------- 59cdf0e10cSrcweirSHL1OBJS= \ 60cdf0e10cSrcweir $(SLO)$/cow_wrapper_clients.obj \ 61cdf0e10cSrcweir $(SLO)$/test-cow_wrapper.obj \ 62cdf0e10cSrcweir $(SLO)$/test-vector_pool.obj \ 63cdf0e10cSrcweir $(SLO)$/test-heap_ptr.obj \ 64cdf0e10cSrcweir $(SLO)$/test-range.obj 65cdf0e10cSrcweir 66cdf0e10cSrcweirSHL1TARGET= tests 67cdf0e10cSrcweirSHL1STDLIBS= $(SALLIB) \ 68cdf0e10cSrcweir $(CPPUNITLIB) 69cdf0e10cSrcweir 70cdf0e10cSrcweirSHL1IMPLIB= i$(SHL1TARGET) 71cdf0e10cSrcweir 72cdf0e10cSrcweirDEF1NAME =$(SHL1TARGET) 73cdf0e10cSrcweirSHL1VERSIONMAP = export.map 74cdf0e10cSrcweirSHL1RPATH = NONE 75cdf0e10cSrcweir 76cdf0e10cSrcweir# END ------------------------------------------------------------------ 77cdf0e10cSrcweir 78cdf0e10cSrcweir#------------------------------- All object files ------------------------------- 79cdf0e10cSrcweir# do this here, so we get right dependencies 80cdf0e10cSrcweirSLOFILES=$(SHL1OBJS) 81cdf0e10cSrcweir 82cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 83cdf0e10cSrcweir.ENDIF # L10N_framework 84cdf0e10cSrcweir 85cdf0e10cSrcweir.INCLUDE : target.mk 86cdf0e10cSrcweir 87cdf0e10cSrcweir# --- Enable test execution in normal build ------------------------ 88cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 89cdf0e10cSrcweir.INCLUDE : _cppunit.mk 90cdf0e10cSrcweir.ENDIF # L10N_framework 91cdf0e10cSrcweir 92828da808SPedro Giffuni.ENDIF # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 93