mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
meson: Workaround the qt5 module not letting us now the preprocessor is not avalaible
If moc-qt5 is not avalaible, meson breaks: https://github.com/mesonbuild/meson/issues/758
This commit is contained in:
parent
c8c834e4a1
commit
5bcf1f1ddd
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@ if x11_dep.found() # FIXME: originally if USE_X
|
||||||
if add_languages('cpp') # check for C++ support
|
if add_languages('cpp') # check for C++ support
|
||||||
qt5_mod = import('qt5')
|
qt5_mod = import('qt5')
|
||||||
qt5widgets_dep = dependency('qt5', modules : ['Gui', 'Widgets'], required: false)
|
qt5widgets_dep = dependency('qt5', modules : ['Gui', 'Widgets'], required: false)
|
||||||
if qt5widgets_dep.found()
|
|
||||||
|
# FIXME Add a way to get that information out of the qt5 module
|
||||||
|
moc = find_program('moc-qt5', required : false)
|
||||||
|
if qt5widgets_dep.found() and moc.found()
|
||||||
executable('qt-videooverlay', 'qt-videooverlay.cpp',
|
executable('qt-videooverlay', 'qt-videooverlay.cpp',
|
||||||
cpp_args : gst_plugins_base_args,
|
cpp_args : gst_plugins_base_args,
|
||||||
include_directories: [configinc, libsinc],
|
include_directories: [configinc, libsinc],
|
||||||
|
|
Loading…
Reference in a new issue