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