mirror of https://code.videolan.org/videolan/vlc
meson: disable xwd if xcb is not enabled
It is always disabled for Windows and Darwin targets in configure.
This commit is contained in:
parent
9d382b9f68
commit
fdf4f657d4
|
@ -238,13 +238,17 @@ if rsvg_dep.found() and cairo_dep.found()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# xwd
|
# xwd
|
||||||
xproto_dep = dependency('xproto', required: get_option('xcb'))
|
if (get_option('xcb')
|
||||||
if xproto_dep.found()
|
.disable_auto_if(host_system in ['darwin', 'windows'])
|
||||||
vlc_modules += {
|
.allowed())
|
||||||
'name' : 'xwd',
|
xproto_dep = dependency('xproto', required: get_option('xcb'))
|
||||||
'sources' : files('xwd.c'),
|
if xproto_dep.found()
|
||||||
'dependencies' : [xproto_dep]
|
vlc_modules += {
|
||||||
}
|
'name' : 'xwd',
|
||||||
|
'sources' : files('xwd.c'),
|
||||||
|
'dependencies' : [xproto_dep]
|
||||||
|
}
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue