From 314351a00144a138b52e3e8659afc351615370d8 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sat, 24 Apr 2004 20:55:22 +0000 Subject: opies version of qmake does not handle contains correctly, use round about way to discover target system --- (limited to 'core/multimedia/opieplayer') diff --git a/core/multimedia/opieplayer/libmad/libmad.pro b/core/multimedia/opieplayer/libmad/libmad.pro index bebcef4..8c5d06d 100644 --- a/core/multimedia/opieplayer/libmad/libmad.pro +++ b/core/multimedia/opieplayer/libmad/libmad.pro @@ -11,13 +11,43 @@ DEPENDPATH += ../$(OPIEDIR)/include .. LIBS += -lqpe -lm VERSION = 1.0.0 -contains(QMAKE_CXX, arm-linux-g++) | contains(QMAKE_CXX, arm-linux-gcc ){ -DEFINES += FPM_ARM -} else { contains(QMAKE_CXX, mipsel-linux-g++ ) { -DEFINES += FPM_MIPS -} else { +include ( $(OPIEDIR)/include.pro ) + DEFINES += FPM_INTEL + +system(echo $QMAKESPEC | grep -s sharp) { + DEFINES -= FPM_INTEL + DEFINES += FPM_ARM } + +system(echo $QMAKESPEC | grep -s ipaq) { + DEFINES -= FPM_INTEL + DEFINES += FPM_ARM } -include ( $(OPIEDIR)/include.pro ) +system(echo $QMAKESPEC | grep -s mipsel) { + DEFINES -= FPM_INTEL + DEFINES += FPM_MIPS +} + +system(echo $QMAKESPEC | grep -s ramses) { + DEFINES -= FPM_INTEL + DEFINES += FPM_ARM +} + +system(echo $QMAKESPEC | grep -s arm) { + DEFINES -= FPM_INTEL + DEFINES += FPM_ARM +} + +system(echo $QMAKESPEC | grep -s simpad) { + DEFINES -= FPM_INTEL + DEFINES += FPM_ARM +} + +system(echo $QMAKESPEC | grep -s yopy) { + DEFINES -= FPM_INTEL + DEFINES += FPM_ARM +} + + -- cgit v0.9.0.2