gstreamer/ext/qt/qtplugin.pro
Matthew Waters ba69afdc47 qmlglsink: add win32 support
The current state of c++ ABI's on Window's and Gst's/Qt's conflicting
mingw builds means that we cannot use mingw for building the qt plugin.

Instead, a qmake .pro file is provided that is expected to be used with the
msvc binaries provided by Qt like so:

(with the PATH environment variable containing the path to the qt biniaries
and PKG_CONFIG_PATH containing the path to GStreamer modules)
cd /path/to/sources/gst-plugins-bad/ext/qt
qmake -tp vc

Then open the resulting VS project and build the library.  Then

cp debug/libgstqtsink.dll /path/to/prefix/lib/gstreamer-1.0/libgstqtsink.cll

https://bugzilla.gnome.org/show_bug.cgi?id=761260
2016-06-22 14:26:05 +10:00

39 lines
No EOL
782 B
Prolog

TEMPLATE = lib
TARGET = libgstqtsink
QT += qml quick widgets
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig debug plugin
PKGCONFIG = \
gstreamer-1.0 \
gstreamer-video-1.0 \
gstreamer-gl-1.0
DEFINES += \
GST_USE_UNSTABLE_API \
HAVE_QT_WIN32 \
'GST_PACKAGE_NAME=\"GStreamer Bad Plug-ins (qmake)\"' \
'GST_PACKAGE_ORIGIN=\"Unknown package origin\"' \
'GST_LICENSE=\"LGPL\"' \
'PACKAGE=\"gst-plugins-bad (qmake)\"' \
'PACKAGE_VERSION=\"1.9.0.1\"'
SOURCES += \
gstplugin.cc \
gstqsgtexture.cc \
gstqtsink.cc \
qtitem.cc
HEADERS += \
gstqsgtexture.h \
gstqtgl.h \
gstqtsink.h \
qtitem.h
INCLUDEPATH += \
$$(GSTREAMER_ROOT)/include \
$$[QT_INSTALL_PREFIX]/include/QtGui/$$[QT_VERSION]/QtGui/