summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-07-25 17:12:00 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-07-27 18:43:52 +0530
commit7ef303fa281b9226ebd0087fb377ca25887941e4 (patch)
treea27cca042ea3d5274b9267eee855655a54ad9c9d /tests
parent8908260c1f14e7b3a0d2713e5165595d0513ce33 (diff)
downloadgstreamer-plugins-bad-7ef303fa281b9226ebd0087fb377ca25887941e4.tar.gz
meson: Add feature options for many plugins
The rest will be converted later, these are necessary for gst-build to set options correctly. https://bugzilla.gnome.org/show_bug.cgi?id=795107
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/waylandsink/meson.build4
-rw-r--r--tests/meson.build5
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/examples/waylandsink/meson.build b/tests/examples/waylandsink/meson.build
index 9dd183bc1..258fc5e2c 100644
--- a/tests/examples/waylandsink/meson.build
+++ b/tests/examples/waylandsink/meson.build
@@ -1,5 +1,5 @@
-gtk_dep = dependency('gtk+-3.0', required : false)
-gtk_wayland_dep = dependency('gtk+-wayland-3.0', required : false)
+gtk_dep = dependency('gtk+-3.0', required : get_option('examples'))
+gtk_wayland_dep = dependency('gtk+-wayland-3.0', required : get_option('examples'))
if use_wayland and gtk_dep.found() and gtk_wayland_dep.found()
executable('waylandsink',
diff --git a/tests/meson.build b/tests/meson.build
index ffab51ec0..f15fe4d05 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -2,5 +2,6 @@
if host_machine.system() != 'windows'
subdir('check')
endif
-
-subdir('examples')
+if not get_option('examples').disabled()
+ subdir('examples')
+endif