summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-24 20:55:22 (UTC)
committer llornkcor <llornkcor>2004-04-24 20:55:22 (UTC)
commit314351a00144a138b52e3e8659afc351615370d8 (patch) (side-by-side diff)
tree458a8784b2bcd981d53183777544cde6e29d34f6
parent981ef917e56f5cb3e5f5d26e7540e12704936bf2 (diff)
downloadopie-314351a00144a138b52e3e8659afc351615370d8.zip
opie-314351a00144a138b52e3e8659afc351615370d8.tar.gz
opie-314351a00144a138b52e3e8659afc351615370d8.tar.bz2
opies version of qmake does not handle contains correctly, use round about way to discover target system
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/libmad/libmad.pro42
1 files changed, 36 insertions, 6 deletions
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
@@ -2,22 +2,52 @@ TEMPLATE = lib
CONFIG += qt warn_on
HEADERS = libmad_version.h fixed.h bit.h timer.h stream.h frame.h synth.h decoder.h \
layer12.h layer3.h huffman.h libmad_global.h mad.h libmadplugin.h libmadpluginimpl.h
SOURCES = version.c fixed.c bit.c timer.c stream.c frame.c synth.c decoder.c \
layer12.c layer3.c huffman.c libmadplugin.cpp libmadpluginimpl.cpp
TARGET = madplugin
DESTDIR = $(OPIEDIR)/plugins/codecs
INCLUDEPATH += $(OPIEDIR)/include ..
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
+}
+
+