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
|
||||
|
||||
# xwd
|
||||
xproto_dep = dependency('xproto', required: get_option('xcb'))
|
||||
if xproto_dep.found()
|
||||
vlc_modules += {
|
||||
'name' : 'xwd',
|
||||
'sources' : files('xwd.c'),
|
||||
'dependencies' : [xproto_dep]
|
||||
}
|
||||
if (get_option('xcb')
|
||||
.disable_auto_if(host_system in ['darwin', 'windows'])
|
||||
.allowed())
|
||||
xproto_dep = dependency('xproto', required: get_option('xcb'))
|
||||
if xproto_dep.found()
|
||||
vlc_modules += {
|
||||
'name' : 'xwd',
|
||||
'sources' : files('xwd.c'),
|
||||
'dependencies' : [xproto_dep]
|
||||
}
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue