From 0f577533e60d224cc55c598f16a0ece13b10bba7 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 14 Sep 2021 18:38:22 -0300 Subject: [PATCH] examples: Add an option to disable tests Part-of: --- subprojects/gst-examples/meson_options.txt | 1 + subprojects/gst-examples/webrtc/meson.build | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 subprojects/gst-examples/meson_options.txt diff --git a/subprojects/gst-examples/meson_options.txt b/subprojects/gst-examples/meson_options.txt new file mode 100644 index 0000000000..de5d74124e --- /dev/null +++ b/subprojects/gst-examples/meson_options.txt @@ -0,0 +1 @@ +option('tests', type : 'feature', value : 'auto', yield : true, description: 'Build tests') diff --git a/subprojects/gst-examples/webrtc/meson.build b/subprojects/gst-examples/webrtc/meson.build index e944f2a652..b5f9d89ace 100644 --- a/subprojects/gst-examples/webrtc/meson.build +++ b/subprojects/gst-examples/webrtc/meson.build @@ -27,4 +27,6 @@ subdir('signalling') subdir('sendonly') subdir('sendrecv') -subdir('check') +if not get_option('tests').disabled() + subdir('check') +endif