meson: check for x11 when building the xv option

Obvious oversight in the original PR for the meson build. The xv option
requires x11 to function. Check for this by using the require method.
This commit is contained in:
Dudemanguy 2021-11-15 08:04:18 -06:00
parent 257bc95255
commit 3bfc37dcb4
1 changed files with 5 additions and 1 deletions

View File

@ -1088,7 +1088,11 @@ if x11['use']
'video/out/x11_common.c')
endif
xv = dependency('xv', required: get_option('xv'))
xv_opt = get_option('xv').require(
x11['use'],
error_message: 'x11 could not be found!',
)
xv = dependency('xv', required: xv_opt)
if xv.found()
dependencies += xv
features += 'xv'