summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-08-18 21:22:42 +0100
committerTim-Philipp Müller <tim@centricular.com>2018-08-18 21:27:24 +0100
commit71a35e7c8b82b163a2370aeaf4dd62800cf90a7c (patch)
tree8071e375a749a98db0cd17db8b8ea7080c4d4ca1
parent0f86a27df9ea0dc515ba9cc80c974cd15fe1d05a (diff)
downloadgstreamer-plugins-ugly-71a35e7c8b82b163a2370aeaf4dd62800cf90a7c.tar.gz
meson: add option to disable tests
-rw-r--r--meson.build1
-rw-r--r--meson_options.txt1
-rw-r--r--tests/meson.build4
3 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e6d11f52..9013477d 100644
--- a/meson.build
+++ b/meson.build
@@ -142,6 +142,7 @@ gstrtsp_dep = dependency('gstreamer-rtsp-1.0', version : gst_req,
fallback : ['gst-plugins-base', 'rtsp_dep'])
if host_machine.system() != 'windows'
gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
+ required : get_option('tests'),
fallback : ['gstreamer', 'gst_check_dep'])
endif
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
diff --git a/meson_options.txt b/meson_options.txt
index c72110a5..4ba86f33 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -22,6 +22,7 @@ option('x264', type : 'feature', value : 'auto', description : 'H.264 video enco
option('nls', type : 'feature', value : 'auto', yield: true,
description : 'Enable native language support (translations)')
option('orc', type : 'feature', value : 'auto', yield : true)
+option('tests', type : 'feature', value : 'auto', yield : true)
option('gobject-cast-checks', type : 'feature', value : 'auto', yield : true,
description: 'Enable run-time GObject cast checks (auto = enabled for development, disabled for stable releases')
option('glib-asserts', type : 'feature', value : 'enabled', yield : true,
diff --git a/tests/meson.build b/tests/meson.build
index cd3aa67d..1cc032c2 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,3 +1,5 @@
if host_machine.system() != 'windows'
- subdir('check')
+ if not get_option('tests').disabled() and gstcheck_dep.found()
+ subdir('check')
+ endif
endif