Commit e234932d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: add options for ximagesrc xshm, xfixes, xdamage checks

And rename x11 option to ximagesrc.

Fixes #553
parent 0a1d048e
......@@ -73,7 +73,12 @@ option('twolame', type : 'feature', value : 'auto', description : 'twolame mp2 a
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment