Nirbheek Chauhan 32eaa0ae35 meson: Rework build files for qt examples in -base
The build files had quite a few things wrong:

* Not using the method: kwarg, which can cause the wrong Qt to be
  used for building
* There was no way to enable the build for them
* Qt was being detected multiple times, differently
* Unnecessary check for libGL
* have_cxx was being used incorrectly
* Qt tool detection was outdated

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9046>
2025-05-23 09:43:17 +00:00

19 lines
528 B
Meson

qt_cxx_warn_less = cxx.get_supported_arguments(['-Wno-aggregate-return'])
subdir('videooverlay')
if not qt5_have_tools
subdir_done()
endif
subdir('mousevideooverlay')
gl_option = get_option('gl')
qt5gl_option = qt5_option.disable_auto_if(not gstgl_dep.found())
qt5opengl_dep = dependency('qt5', modules: ['OpenGL'], method: qt5_method,
required: qt5gl_option.enabled() and gl_option.enabled() and examples_option.enabled())
if qt5opengl_dep.found()
subdir('qglwidgetvideooverlay')
subdir('qglwtextureshare')
endif