meson: disable xwd if xcb is not enabled

It is always disabled for Windows and Darwin targets in configure.
This commit is contained in:
Steve Lhomme 2023-01-27 11:29:33 +01:00
parent 9d382b9f68
commit fdf4f657d4
1 changed files with 11 additions and 7 deletions

View File

@ -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