qt: fix build some more when QPA is not available
authorTim-Philipp Müller <tim@centricular.com>
Fri, 1 Jul 2016 18:22:32 +0000 (19:22 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 1 Jul 2016 18:29:49 +0000 (19:29 +0100)
Compiler would complain about include directory that didn't
exist because QPA_INCLUDE_PATH gets subst-ed regardless
(and if it didn't we'd have just an empty -I argument).

https://bugzilla.gnome.org/show_bug.cgi?id=767553

configure.ac
ext/qt/Makefile.am

index 88f77d7..9a48923 100644 (file)
@@ -2875,7 +2875,7 @@ AG_GST_CHECK_FEATURE(QT, [Qt elements], qt, [
         QT_VERSION="`$PKG_CONFIG --modversion Qt5Core`"
         QPA_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir Qt5Core`/QtGui/${QT_VERSION}/QtGui
         AS_IF([test -f "$QPA_INCLUDE_PATH/qpa/qplatformnativeinterface.h"], [
-          AC_SUBST(QPA_INCLUDE_PATH)
+          QT_CFLAGS="$QT_CFLAGS -I$QPA_INCLUDE_PATH"
           HAVE_QT_QPA_HEADER="yes"
         ], [AC_MSG_NOTICE([Cannot find QPA])])
         if test "x$GST_GL_HAVE_WINDOW_X11" = "x1" -a "x$GST_GL_HAVE_PLATFORM_GLX" = "x1"; then
index eab3e97..5fdd90a 100644 (file)
@@ -26,7 +26,6 @@ libgstqtsink_la_SOURCES = \
 libgstqtsink_la_CXXFLAGS = \
        -I$(top_srcdir)/gst-libs \
        -I$(top_builddir)/gst-libs \
-       -I$(QPA_INCLUDE_PATH) \
        $(GST_CXXFLAGS) \
        $(GST_BASE_CFLAGS) \
        $(GST_PLUGINS_BASE_CFLAGS) \