Commit d75284cd authored by George Kiagiadakis's avatar George Kiagiadakis

qmlgl: qmake: fix building for android

parent 00f14f34
......@@ -35,7 +35,7 @@
#include <gst/gl/wayland/gstgldisplay_wayland.h>
#endif
#if GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_EGLFS)
#if GST_GL_HAVE_PLATFORM_EGL && (defined (HAVE_QT_EGLFS) || defined (HAVE_QT_ANDROID))
#if GST_GL_HAVE_WINDOW_VIV_FB
#include <qpa/qplatformnativeinterface.h>
#include <gst/gl/viv-fb/gstgldisplay_viv_fb.h>
......@@ -189,6 +189,8 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
platform = GST_GL_PLATFORM_EAGL;
#elif GST_GL_HAVE_WINDOW_WIN32 && GST_GL_HAVE_PLATFORM_WGL && defined (HAVE_QT_WIN32)
platform = GST_GL_PLATFORM_WGL;
#elif GST_GL_HAVE_WINDOW_ANDROID && GST_GL_HAVE_PLATFORM_EGL && defined (HAVE_QT_ANDROID)
platform = GST_GL_PLATFORM_EGL;
#else
GST_ERROR ("Unknown platform");
return FALSE;
......
......@@ -5,15 +5,20 @@ TARGET = gstqmlgl
QT += qml quick widgets gui
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig debug plugin
CONFIG += link_pkgconfig debug
PKGCONFIG = \
gstreamer-1.0 \
gstreamer-video-1.0 \
gstreamer-gl-1.0
DEFINES += \
GST_USE_UNSTABLE_API \
HAVE_QT_WIN32
android {
CONFIG += static
} else {
CONFIG += plugin
}
android:DEFINES += HAVE_QT_ANDROID
win32:DEFINES += HAVE_QT_WIN32
SOURCES += \
gstplugin.cc \
......@@ -37,4 +42,3 @@ INCLUDEPATH += \
$$(GSTREAMER_ROOT)/include \
$$[QT_INSTALL_PREFIX]/include/QtGui/$$[QT_VERSION]/QtGui/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment