Skip to content

Commit

Permalink
meson: Add a qt5 feature
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ndufresne committed Sep 15, 2020
1 parent 3cb7540 commit 6643e94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions meson_options.txt
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions tests/examples/gl/qt/meson.build
@@ -1,3 +1,7 @@
if get_option('qt5').disabled()
subdir_done()
endif

qt5_mod = import('qt5')

qt5gui_dep = dependency('qt5', modules : ['Core', 'Gui', 'Widgets'], required : false)
Expand Down
4 changes: 4 additions & 0 deletions tests/examples/overlay/meson.build
@@ -1,3 +1,7 @@
if get_option('qt5').disabled()
subdir_done()
endif

if x11_dep.found()
if gtk_x11_dep.found()
executable('gtk-videooverlay', 'gtk-videooverlay.c',
Expand Down

0 comments on commit 6643e94

Please sign in to comment.