qt: also check for un-suffixed moc
authorMatthew Waters <matthew@centricular.com>
Thu, 7 Jun 2018 03:56:03 +0000 (13:56 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 7 Jun 2018 04:28:37 +0000 (14:28 +1000)
e.g. Qt windows installer doesn't have suffixes

ext/qt/meson.build
tests/examples/qt/qmlsink/meson.build
tests/examples/qt/qmlsrc/meson.build

index 754dc5a..976768e 100644 (file)
@@ -19,7 +19,7 @@ if have_cxx and build_gstgl
   qt5qml_dep = dependency('qt5', modules : ['Core', 'Gui', 'Qml', 'Quick'], required: false)
 
   # FIXME Add a way to get that information out of the qt5 module
-  moc = find_program('moc-qt5', required : false)
+  moc = find_program('moc-qt5', 'moc', required : false)
   if qt5qml_dep.found() and moc.found()
     optional_deps = []
     qt_defines = []
@@ -97,13 +97,13 @@ if have_cxx and build_gstgl
     endif
 
     if gst_gl_have_platform_wgl and gst_gl_have_window_win32
-         # for wglMakeCurrent()
+      # for wglMakeCurrent()
       opengl32_dep = cc.find_library('opengl32', required : false)
       if opengl32_dep.found()
         qt_defines += ['-DHAVE_QT_WIN32']
-               optional_deps += opengl32_dep
+        optional_deps += opengl32_dep
         have_qt_windowing = true
-         endif
+      endif
     endif
 
     # FIXME: OSX/iOS definitions
index d1f3f4d..d59109c 100644 (file)
@@ -7,7 +7,7 @@ if have_cxx and build_gstgl and gstgl_dep.found()
   qt5qml_deps = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'], required: false)
 
   # FIXME Add a way to get that information out of the qt5 module
-  moc = find_program('moc-qt5', required : false)
+  moc = find_program('moc-qt5', 'moc', required : false)
   if qt5qml_deps.found() and moc.found()
     qt_preprocessed = qt5_mod.preprocess(qresources : 'qmlsink.qrc')
     executable('qmlsink', sources, qt_preprocessed,
index df7f94f..5df98ce 100644 (file)
@@ -7,7 +7,7 @@ if have_cxx and build_gstgl and gstgl_dep.found()
   qt5qml_deps = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'], required: false)
 
   # FIXME Add a way to get that information out of the qt5 module
-  moc = find_program('moc-qt5', required : false)
+  moc = find_program('moc-qt5', 'moc', required : false)
   if qt5qml_deps.found() and moc.found()
     qt_preprocessed = qt5_mod.preprocess(qresources : 'qmlsrc.qrc')
     executable('qmlsrc', sources, qt_preprocessed,