diff --git a/gst/meson.build b/gst/meson.build index 229c861eed..59cb3e4750 100644 --- a/gst/meson.build +++ b/gst/meson.build @@ -1,2 +1,5 @@ subdir('rtsp-server') -subdir('rtsp-sink') + +if not get_option('rtspclientsink').disabled() + subdir('rtsp-sink') +endif diff --git a/meson_options.txt b/meson_options.txt index 5b31724426..9f3e9a1c0a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,6 @@ +# Feature options for plugins with no external deps +option('rtspclientsink', type : 'feature', value : 'auto') + # Common feature options option('examples', type : 'feature', value : 'auto', yield : true, description : 'Build the examples') diff --git a/tests/check/meson.build b/tests/check/meson.build index fb9eb9be0a..78d083f331 100644 --- a/tests/check/meson.build +++ b/tests/check/meson.build @@ -23,7 +23,6 @@ rtsp_server_tests = [ 'gst/media', 'gst/permissions', 'gst/rtspserver', - 'gst/rtspclientsink', 'gst/sessionmedia', 'gst/sessionpool', 'gst/stream', @@ -31,6 +30,10 @@ rtsp_server_tests = [ 'gst/token', ] +if not get_option('rtspclientsink').disabled() + rtsp_server_tests += ['gst/rtspclientsink'] +endif + foreach test_name : rtsp_server_tests env = environment() env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')