option('vpx', type : 'feature', value : 'auto', description : 'VP8 and VP9 video codec plugin')
option('waveform', type : 'feature', value : 'auto', description : 'Windows waveform audio sink plugin')
option('wavpack', type : 'feature', value : 'auto', description : 'Wavpack audio codec plugin')
-option('x11', type : 'feature', value : 'auto', description : 'X11 ximagesrc plugin')
+
+# ximagesrc plugin options
+option('ximagesrc', type : 'feature', value : 'auto', description : 'X11 ximagesrc plugin')
+option('ximagesrc-xshm', type : 'feature', value : 'auto', description : 'X11 ximagesrc plugin (XSHM support)')
+option('ximagesrc-xfixes', type : 'feature', value : 'auto', description : 'X11 ximagesrc plugin (XFixes support)')
+option('ximagesrc-xdamage', type : 'feature', value : 'auto', description : 'X11 ximagesrc plugin (XDamage support)')
# v4l2 plugin options
option('v4l2', type : 'feature', value : 'auto', description : 'Build video4linux2 source/sink plugin')
-x11_dep = dependency('x11', required : get_option('x11'))
+x11_dep = dependency('x11', required : get_option('ximagesrc'))
if x11_dep.found()
x_args = []
# FIXME: Need to check for XShmAttach inside libXext
- xshm_dep = dependency('xext', required : false)
+ xshm_dep = dependency('xext', required : get_option('ximagesrc-xshm'))
if xshm_dep.found()
x_args += ['-DHAVE_XSHM']
endif
- xfixes_dep = dependency('xfixes', required : false)
+ xfixes_dep = dependency('xfixes', required : get_option('ximagesrc-xfixes'))
if xfixes_dep.found()
x_args += ['-DHAVE_XFIXES']
endif
- xdamage_dep = dependency('xdamage', required : false)
+ xdamage_dep = dependency('xdamage', required : get_option('ximagesrc-xdamage'))
if xdamage_dep.found()
x_args += ['-DHAVE_XDAMAGE']
endif