meson: add option to disable build of rtspclientsink plugin
authorTim-Philipp Müller <tim@centricular.com>
Wed, 19 Sep 2018 11:17:57 +0000 (12:17 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 19 Sep 2018 11:17:57 +0000 (12:17 +0100)
gst/meson.build
meson_options.txt
tests/check/meson.build

index 229c861..59cb3e4 100644 (file)
@@ -1,2 +1,5 @@
 subdir('rtsp-server')
-subdir('rtsp-sink')
+
+if not get_option('rtspclientsink').disabled()
+  subdir('rtsp-sink')
+endif
index 5b31724..9f3e9a1 100644 (file)
@@ -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')
index fb9eb9b..78d083f 100644 (file)
@@ -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', '')