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 | |||
@@ -1,23 +1,53 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | HEADERS = libmad_version.h fixed.h bit.h timer.h stream.h frame.h synth.h decoder.h \ | 3 | HEADERS = libmad_version.h fixed.h bit.h timer.h stream.h frame.h synth.h decoder.h \ |
4 | layer12.h layer3.h huffman.h libmad_global.h mad.h libmadplugin.h libmadpluginimpl.h | 4 | layer12.h layer3.h huffman.h libmad_global.h mad.h libmadplugin.h libmadpluginimpl.h |
5 | SOURCES = version.c fixed.c bit.c timer.c stream.c frame.c synth.c decoder.c \ | 5 | SOURCES = version.c fixed.c bit.c timer.c stream.c frame.c synth.c decoder.c \ |
6 | layer12.c layer3.c huffman.c libmadplugin.cpp libmadpluginimpl.cpp | 6 | layer12.c layer3.c huffman.c libmadplugin.cpp libmadpluginimpl.cpp |
7 | TARGET = madplugin | 7 | TARGET = madplugin |
8 | DESTDIR = $(OPIEDIR)/plugins/codecs | 8 | DESTDIR = $(OPIEDIR)/plugins/codecs |
9 | INCLUDEPATH += $(OPIEDIR)/include .. | 9 | INCLUDEPATH += $(OPIEDIR)/include .. |
10 | DEPENDPATH += ../$(OPIEDIR)/include .. | 10 | 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 | |||