diff options
author | Jonas Rabbe <jonas.rabbe@nokia.com> | 2012-03-22 11:04:03 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-27 09:22:09 +0200 |
commit | a3b6eabd45b452b98c5b7c45df8a332ad018b8f1 (patch) | |
tree | 9f3a3fd7bfd6c514a472ad0103037476da4c6e0f /src/plugins/gstreamer/gstreamer.pro | |
parent | e44bcf0a384c15e7df593ec3f3cee30775f3f1ef (diff) | |
download | qtmultimedia-a3b6eabd45b452b98c5b7c45df8a332ad018b8f1.tar.gz |
Split gstreamer plugin into smaller plugins providing fewer services
The gstreamer blob has been split into four plugins: audiodecoder,
camerabin, mediacapture, and mediaplayer.
Note: camerabin is still disabled because it is untested camerabin2
implementation.
A new qmake configuration use_gstreamer_camera has been introduced
and is needed for the mediacapture plugin to expose the camera
service. This configuration has been disabled by default.
Shared functionality has been moved to the internal gsttools library.
Change-Id: Ifb2604f440cfa97513d39f5d7978766c88eaec45
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/plugins/gstreamer/gstreamer.pro')
-rw-r--r-- | src/plugins/gstreamer/gstreamer.pro | 123 |
1 files changed, 9 insertions, 114 deletions
diff --git a/src/plugins/gstreamer/gstreamer.pro b/src/plugins/gstreamer/gstreamer.pro index 073ef43ca..17f9e65e0 100644 --- a/src/plugins/gstreamer/gstreamer.pro +++ b/src/plugins/gstreamer/gstreamer.pro @@ -1,119 +1,14 @@ +TEMPLATE = subdirs -load(qt_module) +SUBDIRS += \ + audiodecoder \ + mediacapture \ + mediaplayer -TARGET = qgstengine -QT += multimedia-private network -CONFIG += no_private_qt_headers_warning - -!isEmpty(QT.widgets.name) { - QT += widgets multimediawidgets-private - DEFINES += HAVE_WIDGETS -} - -PLUGIN_TYPE=mediaservice - -load(qt_plugin) -DESTDIR = $$QT.multimedia.plugins/$${PLUGIN_TYPE} - -LIBS += -lqgsttools_p - -unix:!maemo*:contains(QT_CONFIG, alsa) { - DEFINES += HAVE_ALSA - LIBS += -lasound -} - -CONFIG += link_pkgconfig - -PKGCONFIG += \ - gstreamer-0.10 \ - gstreamer-base-0.10 \ - gstreamer-interfaces-0.10 \ - gstreamer-audio-0.10 \ - gstreamer-video-0.10 \ - gstreamer-pbutils-0.10 - -maemo*:PKGCONFIG +=gstreamer-plugins-bad-0.10 - -contains(config_test_resourcepolicy, yes) { - DEFINES += HAVE_RESOURCE_POLICY - PKGCONFIG += libresourceqt1 -} - -maemo6 { - HEADERS += camerabuttonlistener_meego.h - SOURCES += camerabuttonlistener_meego.cpp - - PKGCONFIG += qmsystem2 - - contains(QT_CONFIG, opengles2):!isEmpty(QT.widgets.name) { - HEADERS += qgstreamergltexturerenderer.h - SOURCES += qgstreamergltexturerenderer.cpp - QT += opengl - LIBS += -lEGL -lgstmeegointerfaces-0.10 +# Camerabin2 based camera backend is untested and currently disabled +disabled { + contains(config_test_gstreamer_photography, yes) { + SUBDIRS += camerabin } } -HEADERS += \ - qgstreamervideorendererinterface.h \ - qgstreamerserviceplugin.h \ - qgstreameraudioinputendpointselector.h \ - qgstreamervideorenderer.h \ - qgstreamervideoinputdevicecontrol.h \ - gstvideoconnector.h \ - qgstcodecsinfo.h \ - qgstreamervideoprobecontrol.h \ - qgstreameraudioprobecontrol.h \ - -SOURCES += \ - qgstreamervideorendererinterface.cpp \ - qgstreamerserviceplugin.cpp \ - qgstreameraudioinputendpointselector.cpp \ - qgstreamervideorenderer.cpp \ - qgstreamervideoinputdevicecontrol.cpp \ - qgstcodecsinfo.cpp \ - gstvideoconnector.c \ - qgstreamervideoprobecontrol.cpp \ - qgstreameraudioprobecontrol.cpp \ - - -contains(config_test_xvideo, yes):!isEmpty(QT.widgets.name): { - DEFINES += HAVE_XVIDEO - - LIBS += -lXv -lX11 -lXext - - HEADERS += \ - qgstreamervideooverlay.h \ - qgstreamervideowindow.h \ - qgstreamervideowidget.h \ - qx11videosurface.h \ - - SOURCES += \ - qgstreamervideooverlay.cpp \ - qgstreamervideowindow.cpp \ - qgstreamervideowidget.cpp \ - qx11videosurface.cpp \ -} -include(mediaplayer/mediaplayer.pri) -include(mediacapture/mediacapture.pri) -include(audiodecoder/audiodecoder.pri) - -contains(config_test_gstreamer_appsrc, yes) { - PKGCONFIG += gstreamer-app-0.10 - HEADERS += $$PWD/qgstappsrc.h - SOURCES += $$PWD/qgstappsrc.cpp - - DEFINES += HAVE_GST_APPSRC - - LIBS += -lgstapp-0.10 -} - -OTHER_FILES += gstreamer.json - - -#Camerabin2 based camera backend is untested and currently disabled -#contains(config_test_gstreamer_photography, yes) { -# include(camerabin/camerabin.pri) -#} - -target.path += $$[QT_INSTALL_PLUGINS]/$${PLUGIN_TYPE} -INSTALLS += target |