mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
meson: ximage: check for XShmAttach()
Fixes FIXME.
This commit is contained in:
parent
e234932dc7
commit
64a991d7b8
|
@ -2,9 +2,9 @@ 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
|
|
||||||
xshm_dep = dependency('xext', required : get_option('ximagesrc-xshm'))
|
xshm_dep = dependency('xext', required : get_option('ximagesrc-xshm'))
|
||||||
if xshm_dep.found()
|
# FIXME: should add a 'required' arg to cc.has_function() in Meson and use it here
|
||||||
|
if xshm_dep.found() and cc.has_function('XShmAttach', dependencies: xshm_dep)
|
||||||
x_args += ['-DHAVE_XSHM']
|
x_args += ['-DHAVE_XSHM']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue