summaryrefslogtreecommitdiffstats
path: root/src/plugins/phonon/mmf
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-09-28 12:42:35 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-09-28 15:04:43 (GMT)
commitd2bceb693aa26937f3def5e1b32fc4411d1b646a (patch)
treeafe0219a5f54380cf808c4a23fdb8c394978f8c3 /src/plugins/phonon/mmf
parente0fb34194f9ce85f67f158011b4e706835a5667c (diff)
downloadQt-d2bceb693aa26937f3def5e1b32fc4411d1b646a.zip
Qt-d2bceb693aa26937f3def5e1b32fc4411d1b646a.tar.gz
Qt-d2bceb693aa26937f3def5e1b32fc4411d1b646a.tar.bz2
Fixed build errors due to header filename clashes between epoc32/include and Phonon.
Both epoc32/include and $QTDIR/include/Phonon contain a file called videoplayer.h. Both of these directories are listed as SYSTEMINCLUDE paths in the generated MMP file, with the Phonon path coming first. This means that '#include <videoplayer.h>' picks up the Phonon header rather than (as intended) the Symbian one. A new qmake variable, PREPEND_INCLUDEPATH, is defined, allowing the .pro file to specify that /epoc32/include should be the first SYSTEMINCLUDE.
Diffstat (limited to 'src/plugins/phonon/mmf')
-rw-r--r--src/plugins/phonon/mmf/plugin/plugin.pro17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/plugins/phonon/mmf/plugin/plugin.pro b/src/plugins/phonon/mmf/plugin/plugin.pro
index de108a6..eb7fd27 100644
--- a/src/plugins/phonon/mmf/plugin/plugin.pro
+++ b/src/plugins/phonon/mmf/plugin/plugin.pro
@@ -10,15 +10,16 @@ PHONON_MMF_DIR = $$QT_SOURCE_TREE/src/3rdparty/phonon/mmf
phonon_mmf_audio_drm {
LIBS += -lDrmAudioPlayUtility
-
DEFINES += QT_PHONON_MMF_AUDIO_DRM
} else {
LIBS += -lmediaclientaudio
}
-# In the internal 5th SDK, DrmAudioSamplePlayer.h is placed in this folder, as
-# opposed to the public, where it is placed in epoc32/include. In some cases
-# it's needed for other headers as well.
+# This is necessary because both epoc32/include and Phonon contain videoplayer.h.
+# By making /epoc32/include the first SYSTEMINCLUDE, we ensure that
+# '#include <videoplayer.h>' picks up the Symbian header, as intended.
+PREPEND_INCLUDEPATH = /epoc32/include
+
INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
HEADERS += \
@@ -72,10 +73,6 @@ LIBS += -lws32 # For RWindow
LIBS += -lefsrv # For file server
LIBS += -lapgrfx -lapmime # For recognizer
-# *** Temporary hack, necessitated by
-# inline QSymbianControl::setTransparentBlit
-LIBS += -lfbscli
-
# These are for effects.
LIBS += -lAudioEqualizerEffect -lBassBoostEffect -lDistanceAttenuationEffect -lDopplerBase -lEffectBase -lEnvironmentalReverbEffect -lListenerDopplerEffect -lListenerLocationEffect -lListenerOrientationEffect -lLocationBase -lLoudnessEffect -lOrientationBase -lSourceDopplerEffect -lSourceLocationEffect -lSourceOrientationEffect -lStereoWideningEffect
@@ -87,9 +84,5 @@ INSTALLS += target
include(../../../qpluginbase.pri)
-# We need this to be able to resolve ambiguity for VideoPlayer.h. Phonon and
-# the SDK has the header.
-INCLUDEPATH *= /epoc32
-
TARGET.UID3=0x2001E629