overlay: Fix qt support detection

On Ubuntu moc-qt5 command is called moc. This requires Meson 0.54.0 for
the new has_tools() method.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2075>
This commit is contained in:
Xavier Claessens 2020-03-30 15:16:29 -04:00 committed by GStreamer Marge Bot
parent 8759014f4c
commit 368f7b2cf2

View file

@ -16,9 +16,7 @@ if x11_dep.found()
qt5widgets_dep = dependency('qt5', modules : ['Core', 'Gui', 'Widgets'],
required: get_option('examples'))
# FIXME Add a way to get that information out of the qt5 module
moc = find_program('moc-qt5', required : get_option('examples'))
if qt5widgets_dep.found() and moc.found()
if qt5widgets_dep.found() and qt5_mod.has_tools(required: get_option('examples'))
executable('qt-videooverlay', 'qt-videooverlay.cpp',
cpp_args : gst_plugins_base_args,
include_directories: [configinc, libsinc],