mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
meson: add options for ximagesrc xshm, xfixes, xdamage checks
And rename x11 option to ximagesrc. Fixes #553
This commit is contained in:
parent
0a1d048ee3
commit
e234932dc7
2 changed files with 10 additions and 5 deletions
|
@ -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('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('waveform', type : 'feature', value : 'auto', description : 'Windows waveform audio sink plugin')
|
||||||
option('wavpack', type : 'feature', value : 'auto', description : 'Wavpack audio codec 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
|
# v4l2 plugin options
|
||||||
option('v4l2', type : 'feature', value : 'auto', description : 'Build video4linux2 source/sink plugin')
|
option('v4l2', type : 'feature', value : 'auto', description : 'Build video4linux2 source/sink plugin')
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
x11_dep = dependency('x11', required : get_option('x11'))
|
x11_dep = dependency('x11', required : get_option('ximagesrc'))
|
||||||
|
|
||||||
if x11_dep.found()
|
if x11_dep.found()
|
||||||
x_args = []
|
x_args = []
|
||||||
# FIXME: Need to check for XShmAttach inside libXext
|
# 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()
|
if xshm_dep.found()
|
||||||
x_args += ['-DHAVE_XSHM']
|
x_args += ['-DHAVE_XSHM']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
xfixes_dep = dependency('xfixes', required : false)
|
xfixes_dep = dependency('xfixes', required : get_option('ximagesrc-xfixes'))
|
||||||
if xfixes_dep.found()
|
if xfixes_dep.found()
|
||||||
x_args += ['-DHAVE_XFIXES']
|
x_args += ['-DHAVE_XFIXES']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
xdamage_dep = dependency('xdamage', required : false)
|
xdamage_dep = dependency('xdamage', required : get_option('ximagesrc-xdamage'))
|
||||||
if xdamage_dep.found()
|
if xdamage_dep.found()
|
||||||
x_args += ['-DHAVE_XDAMAGE']
|
x_args += ['-DHAVE_XDAMAGE']
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue