meson: add option to disable build of rtspclientsink plugin

This commit is contained in:
Tim-Philipp Müller 2018-09-19 12:17:57 +01:00
parent 46d8bb2881
commit ffebe3dd84
3 changed files with 11 additions and 2 deletions

View file

@ -1,2 +1,5 @@
subdir('rtsp-server')
subdir('rtsp-sink')
if not get_option('rtspclientsink').disabled()
subdir('rtsp-sink')
endif

View 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')

View 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', '')