summaryrefslogtreecommitdiffstats
path: root/src/plugins/phonon
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:34:13 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:34:13 (GMT)
commit67ad0519fd165acee4a4d2a94fa502e9e4847bd0 (patch)
tree1dbf50b3dff8d5ca7e9344733968c72704eb15ff /src/plugins/phonon
downloadQt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.zip
Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.gz
Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.bz2
Long live Qt!
Diffstat (limited to 'src/plugins/phonon')
-rw-r--r--src/plugins/phonon/ds9/ds9.pro60
-rw-r--r--src/plugins/phonon/gstreamer/gstreamer.pro67
-rw-r--r--src/plugins/phonon/phonon.pro9
-rw-r--r--src/plugins/phonon/qt7/qt7.pro76
-rw-r--r--src/plugins/phonon/waveout/waveout.pro23
5 files changed, 235 insertions, 0 deletions
diff --git a/src/plugins/phonon/ds9/ds9.pro b/src/plugins/phonon/ds9/ds9.pro
new file mode 100644
index 0000000..786338a
--- /dev/null
+++ b/src/plugins/phonon/ds9/ds9.pro
@@ -0,0 +1,60 @@
+DESTDIR = $$QT_BUILD_TREE/plugins/phonon_backend
+QT += phonon
+win32:!wince*:contains(QT_CONFIG,opengl):LIBS += -lopengl32
+win32:!wince*:LIBS += -lgdi32
+win32-msvc2005:DEFINES += _CRT_SECURE_NO_WARNINGS
+LIBS += -lstrmiids -ldmoguids -luuid -lmsdmo -lole32 -loleaut32
+TARGET = phonon_ds9
+
+DEFINES += PHONON_MAKE_QT_ONLY_BACKEND
+PHONON_DS9_DIR = $$QT_SOURCE_TREE/src/3rdparty/phonon/ds9
+
+# Input
+HEADERS += \
+ $$PHONON_DS9_DIR/abstractvideorenderer.h \
+ $$PHONON_DS9_DIR/audiooutput.h \
+ $$PHONON_DS9_DIR/backend.h \
+ $$PHONON_DS9_DIR/backendnode.h \
+ $$PHONON_DS9_DIR/effect.h \
+ $$PHONON_DS9_DIR/fakesource.h \
+ $$PHONON_DS9_DIR/iodevicereader.h \
+ $$PHONON_DS9_DIR/mediagraph.h \
+ $$PHONON_DS9_DIR/mediaobject.h \
+ $$PHONON_DS9_DIR/videowidget.h \
+ $$PHONON_DS9_DIR/videorenderer_soft.h \
+ $$PHONON_DS9_DIR/videorenderer_vmr9.h \
+ $$PHONON_DS9_DIR/volumeeffect.h \
+ $$PHONON_DS9_DIR/qbasefilter.h \
+ $$PHONON_DS9_DIR/qpin.h \
+ $$PHONON_DS9_DIR/qasyncreader.h \
+ $$PHONON_DS9_DIR/qaudiocdreader.h \
+ $$PHONON_DS9_DIR/qmeminputpin.h \
+ $$PHONON_DS9_DIR/compointer.h \
+ $$PHONON_DS9_DIR/phononds9_namespace.h
+
+
+SOURCES += \
+ $$PHONON_DS9_DIR/abstractvideorenderer.cpp \
+ $$PHONON_DS9_DIR/audiooutput.cpp \
+ $$PHONON_DS9_DIR/backend.cpp \
+ $$PHONON_DS9_DIR/backendnode.cpp \
+ $$PHONON_DS9_DIR/effect.cpp \
+ $$PHONON_DS9_DIR/fakesource.cpp \
+ $$PHONON_DS9_DIR/iodevicereader.cpp \
+ $$PHONON_DS9_DIR/mediagraph.cpp \
+ $$PHONON_DS9_DIR/mediaobject.cpp \
+ $$PHONON_DS9_DIR/videowidget.cpp \
+ $$PHONON_DS9_DIR/videorenderer_soft.cpp \
+ $$PHONON_DS9_DIR/videorenderer_vmr9.cpp \
+ $$PHONON_DS9_DIR/volumeeffect.cpp \
+ $$PHONON_DS9_DIR/qbasefilter.cpp \
+ $$PHONON_DS9_DIR/qpin.cpp \
+ $$PHONON_DS9_DIR/qasyncreader.cpp \
+ $$PHONON_DS9_DIR/qaudiocdreader.cpp \
+ $$PHONON_DS9_DIR/qmeminputpin.cpp
+
+
+target.path = $$[QT_INSTALL_PLUGINS]/phonon_backend
+INSTALLS += target
+
+include(../../qpluginbase.pri)
diff --git a/src/plugins/phonon/gstreamer/gstreamer.pro b/src/plugins/phonon/gstreamer/gstreamer.pro
new file mode 100644
index 0000000..ae597fa
--- /dev/null
+++ b/src/plugins/phonon/gstreamer/gstreamer.pro
@@ -0,0 +1,67 @@
+TARGET = phonon_gstreamer
+DESTDIR = $$QT_BUILD_TREE/plugins/phonon_backend
+
+DEPENDPATH += .
+INCLUDEPATH += .
+
+QT += phonon
+contains(QT_CONFIG, opengl):QT += opengl
+
+# GStreamer
+QMAKE_CXXFLAGS += $$QT_CFLAGS_GSTREAMER
+LIBS += $$QT_LIBS_GSTREAMER -lgstinterfaces-0.10 -lgstvideo-0.10 -lgstbase-0.10 -lgstaudio-0.10
+
+PHONON_GSTREAMER_DIR = $$QT_SOURCE_TREE/src/3rdparty/phonon/gstreamer
+
+HEADERS += $$PHONON_GSTREAMER_DIR/common.h \
+ $$PHONON_GSTREAMER_DIR/audiooutput.h \
+ $$PHONON_GSTREAMER_DIR/artssink.h \
+ $$PHONON_GSTREAMER_DIR/abstractrenderer.h \
+ $$PHONON_GSTREAMER_DIR/backend.h \
+ $$PHONON_GSTREAMER_DIR/devicemanager.h \
+ $$PHONON_GSTREAMER_DIR/effect.h \
+ $$PHONON_GSTREAMER_DIR/effectmanager.h \
+ $$PHONON_GSTREAMER_DIR/gsthelper.h \
+ $$PHONON_GSTREAMER_DIR/mediaobject.h \
+ $$PHONON_GSTREAMER_DIR/medianode.h \
+ $$PHONON_GSTREAMER_DIR/medianodeevent.h \
+ $$PHONON_GSTREAMER_DIR/widgetrenderer.h \
+ $$PHONON_GSTREAMER_DIR/videowidget.h \
+ $$PHONON_GSTREAMER_DIR/glrenderer.h \
+ $$PHONON_GSTREAMER_DIR/qwidgetvideosink.h \
+ $$PHONON_GSTREAMER_DIR/phononsrc.h \
+ $$PHONON_GSTREAMER_DIR/streamreader.h \
+ $$PHONON_GSTREAMER_DIR/message.h \
+ $$PHONON_GSTREAMER_DIR/audioeffect.h \
+ $$PHONON_GSTREAMER_DIR/volumefadereffect.h
+
+SOURCES += $$PHONON_GSTREAMER_DIR/audiooutput.cpp \
+ $$PHONON_GSTREAMER_DIR/abstractrenderer.cpp \
+ $$PHONON_GSTREAMER_DIR/artssink.cpp \
+ $$PHONON_GSTREAMER_DIR/backend.cpp \
+ $$PHONON_GSTREAMER_DIR/devicemanager.cpp \
+ $$PHONON_GSTREAMER_DIR/effect.cpp \
+ $$PHONON_GSTREAMER_DIR/effectmanager.cpp \
+ $$PHONON_GSTREAMER_DIR/gsthelper.cpp \
+ $$PHONON_GSTREAMER_DIR/mediaobject.cpp \
+ $$PHONON_GSTREAMER_DIR/medianode.cpp \
+ $$PHONON_GSTREAMER_DIR/medianodeevent.cpp \
+ $$PHONON_GSTREAMER_DIR/widgetrenderer.cpp \
+ $$PHONON_GSTREAMER_DIR/videowidget.cpp \
+ $$PHONON_GSTREAMER_DIR/glrenderer.cpp \
+ $$PHONON_GSTREAMER_DIR/qwidgetvideosink.cpp \
+ $$PHONON_GSTREAMER_DIR/phononsrc.cpp \
+ $$PHONON_GSTREAMER_DIR/streamreader.cpp \
+ $$PHONON_GSTREAMER_DIR/message.cpp \
+ $$PHONON_GSTREAMER_DIR/audioeffect.cpp \
+ $$PHONON_GSTREAMER_DIR/volumefadereffect.cpp
+
+!embedded {
+ HEADERS += $$PHONON_GSTREAMER_DIR/x11renderer.h
+ SOURCES += $$PHONON_GSTREAMER_DIR/x11renderer.cpp
+}
+
+target.path = $$[QT_INSTALL_PLUGINS]/phonon_backend
+INSTALLS += target
+
+include(../../qpluginbase.pri)
diff --git a/src/plugins/phonon/phonon.pro b/src/plugins/phonon/phonon.pro
new file mode 100644
index 0000000..e43a4c2
--- /dev/null
+++ b/src/plugins/phonon/phonon.pro
@@ -0,0 +1,9 @@
+TEMPLATE = subdirs
+
+SUBDIRS =
+
+unix:contains(QT_CONFIG, gstreamer): SUBDIRS *= gstreamer
+mac:contains(QT_CONFIG, phonon-backend): SUBDIRS *= qt7
+win32:!wince*:contains(QT_CONFIG, phonon-backend): SUBDIRS *= ds9
+wince*:contains(QT_CONFIG, phonon-backend): SUBDIRS *= waveout
+wince*:contains(QT_CONFIG, directshow): SUBDIRS *= ds9
diff --git a/src/plugins/phonon/qt7/qt7.pro b/src/plugins/phonon/qt7/qt7.pro
new file mode 100644
index 0000000..665baee
--- /dev/null
+++ b/src/plugins/phonon/qt7/qt7.pro
@@ -0,0 +1,76 @@
+QT += opengl phonon
+TARGET = phonon_qt7
+DESTDIR = $$QT_BUILD_TREE/plugins/phonon_backend
+
+# The Quicktime framework is only awailable for 32-bit builds, so we
+# need to check for this before linking against it.
+# QMAKE_MAC_XARCH is not awailable on Tiger, but at the same time,
+# we never build for 64-bit architechtures on Tiger either:
+contains(QMAKE_MAC_XARCH, no) {
+ LIBS += -framework QuickTime
+} else {
+ LIBS += -Xarch_i386 -framework QuickTime -Xarch_ppc -framework QuickTime
+}
+
+LIBS += -framework AudioUnit \
+ -framework AudioToolbox -framework CoreAudio \
+ -framework QuartzCore -framework QTKit
+
+DEPENDPATH += .
+INCLUDEPATH += .
+
+PHONON_QUICKTIME_DIR=$$QT_SOURCE_TREE/src/3rdparty/phonon/qt7
+
+# Input
+HEADERS += $$PHONON_QUICKTIME_DIR/medianode.h \
+ $$PHONON_QUICKTIME_DIR/backend.h \
+ $$PHONON_QUICKTIME_DIR/videowidget.h \
+ $$PHONON_QUICKTIME_DIR/mediaobject.h \
+ $$PHONON_QUICKTIME_DIR/quicktimevideoplayer.h \
+ $$PHONON_QUICKTIME_DIR/backendheader.h \
+ $$PHONON_QUICKTIME_DIR/medianodevideopart.h \
+ $$PHONON_QUICKTIME_DIR/medianodeevent.h \
+ $$PHONON_QUICKTIME_DIR/quicktimeaudioplayer.h \
+ $$PHONON_QUICKTIME_DIR/audionode.h \
+ $$PHONON_QUICKTIME_DIR/audiograph.h \
+ $$PHONON_QUICKTIME_DIR/audiooutput.h \
+ $$PHONON_QUICKTIME_DIR/quicktimemetadata.h \
+ $$PHONON_QUICKTIME_DIR/audiomixer.h \
+ $$PHONON_QUICKTIME_DIR/audiodevice.h \
+ $$PHONON_QUICKTIME_DIR/backendinfo.h \
+ $$PHONON_QUICKTIME_DIR/audioconnection.h \
+ $$PHONON_QUICKTIME_DIR/audiopartoutput.h \
+ $$PHONON_QUICKTIME_DIR/videoframe.h \
+ $$PHONON_QUICKTIME_DIR/audiosplitter.h \
+ $$PHONON_QUICKTIME_DIR/audioeffects.h \
+ $$PHONON_QUICKTIME_DIR/quicktimestreamreader.h \
+ $$PHONON_QUICKTIME_DIR/mediaobjectaudionode.h
+# HEADERS += objc_help.h videoeffect.h
+
+OBJECTIVE_SOURCES += $$PHONON_QUICKTIME_DIR/quicktimevideoplayer.mm \
+ $$PHONON_QUICKTIME_DIR/backendheader.mm \
+ $$PHONON_QUICKTIME_DIR/medianodevideopart.mm \
+ $$PHONON_QUICKTIME_DIR/medianodeevent.mm \
+ $$PHONON_QUICKTIME_DIR/audiooutput.mm \
+ $$PHONON_QUICKTIME_DIR/backendinfo.mm \
+ $$PHONON_QUICKTIME_DIR/audiosplitter.mm \
+ $$PHONON_QUICKTIME_DIR/audioeffects.mm \
+ $$PHONON_QUICKTIME_DIR/quicktimestreamreader.mm \
+ $$PHONON_QUICKTIME_DIR/medianode.mm \
+ $$PHONON_QUICKTIME_DIR/backend.mm \
+ $$PHONON_QUICKTIME_DIR/mediaobject.mm \
+ $$PHONON_QUICKTIME_DIR/mediaobjectaudionode.mm \
+ $$PHONON_QUICKTIME_DIR/audiomixer.mm \
+ $$PHONON_QUICKTIME_DIR/quicktimeaudioplayer.mm \
+ $$PHONON_QUICKTIME_DIR/videoframe.mm \
+ $$PHONON_QUICKTIME_DIR/quicktimemetadata.mm \
+ $$PHONON_QUICKTIME_DIR/audiodevice.mm \
+ $$PHONON_QUICKTIME_DIR/audioconnection.mm \
+ $$PHONON_QUICKTIME_DIR/audiograph.mm \
+ $$PHONON_QUICKTIME_DIR/audionode.mm \
+ $$PHONON_QUICKTIME_DIR/videowidget.mm
+
+target.path = $$[QT_INSTALL_PLUGINS]/phonon_backend
+INSTALLS += target
+
+include(../../qpluginbase.pri)
diff --git a/src/plugins/phonon/waveout/waveout.pro b/src/plugins/phonon/waveout/waveout.pro
new file mode 100644
index 0000000..1e2bd33
--- /dev/null
+++ b/src/plugins/phonon/waveout/waveout.pro
@@ -0,0 +1,23 @@
+DESTDIR = $$QT_BUILD_TREE/plugins/phonon_backend
+QT += phonon
+win32-msvc2005:DEFINES += _CRT_SECURE_NO_WARNINGS
+TARGET = phonon_waveout
+
+DEFINES += PHONON_MAKE_QT_ONLY_BACKEND
+PHONON_WAVEOUT_DIR = $$QT_SOURCE_TREE/src/3rdparty/phonon/waveout
+
+# Input
+HEADERS += $$PHONON_WAVEOUT_DIR/audiooutput.h \
+ $$PHONON_WAVEOUT_DIR/backend.h \
+ $$PHONON_WAVEOUT_DIR/mediaobject.h
+
+
+SOURCES += $$PHONON_WAVEOUT_DIR/audiooutput.cpp \
+ $$PHONON_WAVEOUT_DIR/backend.cpp \
+ $$PHONON_WAVEOUT_DIR/mediaobject.cpp
+
+
+target.path = $$[QT_INSTALL_PLUGINS]/phonon_backend
+INSTALLS += target
+
+include(../../qpluginbase.pri)