Skip to content
Snippets Groups Projects
Commit 6643e941 authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

meson: Add a qt5 feature

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: <gstreamer/gst-plugins-base!817>
parent 3cb7540c
No related branches found
No related tags found
1 merge request!817meson: Add a qt5 feature
......@@ -79,6 +79,7 @@ option('glib-asserts', type : 'feature', value : 'enabled', yield : true,
description: 'Enable GLib assertion (auto = enabled for development, disabled for stable releases)')
option('glib-checks', type : 'feature', value : 'enabled', yield : true,
description: 'Enable GLib checks such as API guards (auto = enabled for development, disabled for stable releases)')
option('qt5', type : 'feature', value : 'auto', yield : true, description : 'Qt5 QML examples')
# Common options
option('package-name', type : 'string', yield : true,
......
if get_option('qt5').disabled()
subdir_done()
endif
qt5_mod = import('qt5')
qt5gui_dep = dependency('qt5', modules : ['Core', 'Gui', 'Widgets'], required : false)
......
if get_option('qt5').disabled()
subdir_done()
endif
if x11_dep.found()
if gtk_x11_dep.found()
executable('gtk-videooverlay', 'gtk-videooverlay.c',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment