summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-24 20:55:22 (UTC)
committer llornkcor <llornkcor>2004-04-24 20:55:22 (UTC)
commit314351a00144a138b52e3e8659afc351615370d8 (patch) (unidiff)
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
@@ -11,13 +11,43 @@ DEPENDPATH += ../$(OPIEDIR)/include ..
11LIBS += -lqpe -lm 11LIBS += -lqpe -lm
12VERSION = 1.0.0 12VERSION = 1.0.0
13 13
14contains(QMAKE_CXX, arm-linux-g++) | contains(QMAKE_CXX, arm-linux-gcc ){ 14include ( $(OPIEDIR)/include.pro )
15DEFINES += FPM_ARM 15
16} else { contains(QMAKE_CXX, mipsel-linux-g++ ) {
17DEFINES += FPM_MIPS
18} else {
19DEFINES += FPM_INTEL 16DEFINES += FPM_INTEL
17
18system(echo $QMAKESPEC | grep -s sharp) {
19 DEFINES -= FPM_INTEL
20 DEFINES += FPM_ARM
20} 21}
22
23system(echo $QMAKESPEC | grep -s ipaq) {
24 DEFINES -= FPM_INTEL
25 DEFINES += FPM_ARM
21} 26}
22 27
23include ( $(OPIEDIR)/include.pro ) 28system(echo $QMAKESPEC | grep -s mipsel) {
29 DEFINES -= FPM_INTEL
30 DEFINES += FPM_MIPS
31}
32
33system(echo $QMAKESPEC | grep -s ramses) {
34 DEFINES -= FPM_INTEL
35 DEFINES += FPM_ARM
36}
37
38system(echo $QMAKESPEC | grep -s arm) {
39 DEFINES -= FPM_INTEL
40 DEFINES += FPM_ARM
41}
42
43system(echo $QMAKESPEC | grep -s simpad) {
44 DEFINES -= FPM_INTEL
45 DEFINES += FPM_ARM
46}
47
48system(echo $QMAKESPEC | grep -s yopy) {
49 DEFINES -= FPM_INTEL
50 DEFINES += FPM_ARM
51}
52
53