mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-15 04:46:32 +00:00
6643e941be
This allow opting out items of the builds the depends on QT5 library. Auto-detection of QT5 in cross-build requires host tools to match with the sysroot, and detection of mis-match is not fully reliable. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/817>
23 lines
612 B
Meson
23 lines
612 B
Meson
if get_option('qt5').disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
qt5_mod = import('qt5')
|
|
|
|
qt5gui_dep = dependency('qt5', modules : ['Core', 'Gui', 'Widgets'], required : false)
|
|
qt5opengl_dep = dependency('qt5', modules : ['OpenGL'], required : false)
|
|
#FIXME; other platforms
|
|
libgl = cc.find_library ('GL', required : false)
|
|
|
|
qt_cxx_warn_less = cxx.get_supported_arguments(['-Wno-aggregate-return'])
|
|
|
|
if qt5gui_dep.found()
|
|
subdir('videooverlay')
|
|
if libgl.found()
|
|
subdir('mousevideooverlay')
|
|
if qt5opengl_dep.found()
|
|
subdir('qglwidgetvideooverlay')
|
|
subdir('qglwtextureshare')
|
|
endif
|
|
endif
|
|
endif
|