summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-08-12 14:11:00 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-08-12 14:16:51 (GMT)
commit44265f30fb40baaecd4cda1b5aca0efeed6abc20 (patch)
tree64d08be182c0d99ec4218408f97f01b0d6a2d351 /src/plugins
parent4cd7180ad3365c0e8eef8a22c825f3289a799ab0 (diff)
downloadQt-44265f30fb40baaecd4cda1b5aca0efeed6abc20.zip
Qt-44265f30fb40baaecd4cda1b5aca0efeed6abc20.tar.gz
Qt-44265f30fb40baaecd4cda1b5aca0efeed6abc20.tar.bz2
Commit patch by Gareth.
The patch originally contained all changed done to MMF Phonon, but this commit contains the changes only Gareth did.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/phonon/mmf/mmf.pro30
-rw-r--r--src/plugins/plugins.pro1
2 files changed, 24 insertions, 7 deletions
diff --git a/src/plugins/phonon/mmf/mmf.pro b/src/plugins/phonon/mmf/mmf.pro
index 6d404f2..ee2d3f9 100644
--- a/src/plugins/phonon/mmf/mmf.pro
+++ b/src/plugins/phonon/mmf/mmf.pro
@@ -1,17 +1,37 @@
+# MMF Phonon backend
+
QT += phonon
TARGET = phonon_mmf
PHONON_MMF_DIR = $$QT_SOURCE_TREE/src/3rdparty/phonon/mmf
-LIBS += -lDrmAudioPlayUtility.lib
+
+# Uncomment the following line in order to use the CDrmPlayerUtility client
+# API for audio playback, rather than CMdaAudioPlayerUtility.
+#CONFIG += phonon_mmf_audio_drm
+
+phonon_mmf_audio_drm {
+ LIBS += -lDrmAudioPlayUtility.lib
+
+ # In the internal 5th SDK, DrmAudioSamplePlayer.h is placed in this
+ # folder, as opposed to the public, where it is placed in
+ # epoc32/include.
+ INCLUDEPATH *= /epoc32/include/osextensions
+
+ DEFINES += QT_PHONON_MMF_AUDIO_DRM
+} else {
+ LIBS += -lmediaclientaudio.lib
+}
HEADERS += \
$$PHONON_MMF_DIR/audiooutput.h \
$$PHONON_MMF_DIR/backend.h \
- $$PHONON_MMF_DIR/mediaobject.h
+ $$PHONON_MMF_DIR/mediaobject.h \
+ $$PHONON_MMF_DIR/utils.h
SOURCES += \
$$PHONON_MMF_DIR/audiooutput.cpp \
$$PHONON_MMF_DIR/backend.cpp \
- $$PHONON_MMF_DIR/mediaobject.cpp
+ $$PHONON_MMF_DIR/mediaobject.cpp \
+ $$PHONON_MMF_DIR/utils.cpp
# This is needed for having the .qtplugin file properly created on Symbian.
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/phonon_backend
@@ -21,10 +41,6 @@ INSTALLS += target
include(../../qpluginbase.pri)
-# In the internal 5th SDK, DrmAudioSamplePlayer.h is placed in this folder, as
-# opposed to the public, where it is placed in epoc32/include.
-INCLUDEPATH *= /epoc32/include/osextensions
-
# We need this to be able to resolve ambiguity for VideoPlayer.h. Phonon and
# the SDK has the header.
INCLUDEPATH *= /epoc32
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index db2e534..004b816 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -8,6 +8,7 @@ unix:!symbian {
}
!embedded:SUBDIRS *= graphicssystems
embedded:SUBDIRS *= gfxdrivers decorations mousedrivers kbddrivers
+!win32:!embedded:!mac:!symbian:SUBDIRS *= inputmethods
symbian:SUBDIRS += s60
contains(QT_CONFIG, phonon): SUBDIRS *= phonon
contains(QT_CONFIG, multimedia): SUBDIRS *= audio