qmlgl: meson: fix theoretical support for building for android
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Sat, 19 Jan 2019 14:46:41 +0000 (15:46 +0100)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Mon, 21 Jan 2019 09:55:50 +0000 (11:55 +0200)
The android code path is slightly different than the EGLFS one,
so I added previously a HAVE_QT_ANDROID define for use with qmake.
Here I also add it in meson, although I expect nobody will ever use
meson to build this, as it's complicated.

ext/qt/meson.build

index 18646d2..500501d 100644 (file)
@@ -93,7 +93,7 @@ if have_cxx and build_gstgl
           qt5androidextras = dependency('qt5', modules : ['AndroidExtras'], required : false)
           if qt5androidextras.found()
             optional_deps += qt5androidextras
-            # also uses the HAVE_QT_EGLFS define below
+            qt_defines += ['-DHAVE_QT_ANDROID']
             have_qt_windowing = true
           endif
         endif