1*2407af08SAndrew Rist#************************************************************** 2*2407af08SAndrew Rist# 3*2407af08SAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*2407af08SAndrew Rist# or more contributor license agreements. See the NOTICE file 5*2407af08SAndrew Rist# distributed with this work for additional information 6*2407af08SAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*2407af08SAndrew Rist# to you under the Apache License, Version 2.0 (the 8*2407af08SAndrew Rist# "License"); you may not use this file except in compliance 9*2407af08SAndrew Rist# with the License. You may obtain a copy of the License at 10*2407af08SAndrew Rist# 11*2407af08SAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*2407af08SAndrew Rist# 13*2407af08SAndrew Rist# Unless required by applicable law or agreed to in writing, 14*2407af08SAndrew Rist# software distributed under the License is distributed on an 15*2407af08SAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2407af08SAndrew Rist# KIND, either express or implied. See the License for the 17*2407af08SAndrew Rist# specific language governing permissions and limitations 18*2407af08SAndrew Rist# under the License. 19*2407af08SAndrew Rist# 20*2407af08SAndrew Rist#************************************************************** 21*2407af08SAndrew Rist 22*2407af08SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=.. 25cdf0e10cSrcweir 26cdf0e10cSrcweirPRJNAME=basegfx 27cdf0e10cSrcweirTARGET=tests 28cdf0e10cSrcweir 29cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 30cdf0e10cSrcweir 31cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 32cdf0e10cSrcweir 33cdf0e10cSrcweir.INCLUDE : settings.mk 34cdf0e10cSrcweir 35828da808SPedro Giffuni.IF "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 365e7a3e64SPedro Giffuni 375e7a3e64SPedro Giffuni@all: 38828da808SPedro Giffuni.IF "$(GUI)" == "OS2" 395e7a3e64SPedro Giffuni @echo "Skipping, cppunit broken." 40828da808SPedro Giffuni.ELIF "$(WITH_CPPUNIT)" != "YES" 41828da808SPedro Giffuni @echo "cppunit disabled. nothing do do." 42828da808SPedro Giffuni.END 435e7a3e64SPedro Giffuni 44828da808SPedro Giffuni.ELSE # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 455e7a3e64SPedro Giffuni 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# --- Common ---------------------------------------------------------- 56cdf0e10cSrcweir 57cdf0e10cSrcweirSHL1OBJS= \ 58cdf0e10cSrcweir $(SLO)$/basegfx1d.obj \ 59cdf0e10cSrcweir $(SLO)$/basegfx2d.obj \ 60cdf0e10cSrcweir $(SLO)$/basegfx3d.obj \ 61cdf0e10cSrcweir $(SLO)$/boxclipper.obj \ 62cdf0e10cSrcweir $(SLO)$/basegfxtools.obj \ 63cdf0e10cSrcweir $(SLO)$/clipstate.obj \ 64cdf0e10cSrcweir $(SLO)$/genericclipper.obj \ 65cdf0e10cSrcweir $(SLO)$/testtools.obj 66cdf0e10cSrcweir 67cdf0e10cSrcweirSHL1TARGET= basegfx_tests 68cdf0e10cSrcweirSHL1STDLIBS= \ 69cdf0e10cSrcweir $(BASEGFXLIB) \ 70cdf0e10cSrcweir $(SALLIB) \ 71cdf0e10cSrcweir $(CPPUHELPERLIB) \ 72cdf0e10cSrcweir $(CPPULIB) \ 73cdf0e10cSrcweir $(CPPUNITLIB) 74cdf0e10cSrcweir 75cdf0e10cSrcweirSHL1IMPLIB= i$(SHL1TARGET) 76cdf0e10cSrcweir 77cdf0e10cSrcweirDEF1NAME =$(SHL1TARGET) 78cdf0e10cSrcweirSHL1VERSIONMAP = export.map 79cdf0e10cSrcweirSHL1RPATH = NONE 80cdf0e10cSrcweir 81cdf0e10cSrcweir# END ------------------------------------------------------------------ 82cdf0e10cSrcweir 83cdf0e10cSrcweir#------------------------------- All object files ------------------------------- 84cdf0e10cSrcweir# do this here, so we get right dependencies 85cdf0e10cSrcweirSLOFILES=$(SHL1OBJS) 86cdf0e10cSrcweir 87cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 88cdf0e10cSrcweir 89828da808SPedro Giffuni.ENDIF # "$(WITH_CPPUNIT)" != "YES" || "$(GUI)" == "OS2" 905e7a3e64SPedro Giffuni 91cdf0e10cSrcweir.INCLUDE : target.mk 92cdf0e10cSrcweir.INCLUDE : _cppunit.mk 93cdf0e10cSrcweir 94cdf0e10cSrcweir.IF "$(verbose)"!="" || "$(VERBOSE)"!="" 95cdf0e10cSrcweirCDEFS+= -DVERBOSE 96cdf0e10cSrcweir.ENDIF 97