mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
meson: Only require expat when building wayland-scanner
This code is only required for building wayland-scanner so it should be scoped accordingly. libxml-2.0 will only be required if both "scanner" and "dtd_validation" are set to true. Signed-off-by: Michael Weiss <dev.primeos@gmail.com>
This commit is contained in:
parent
d224e6ccf3
commit
e4659ffbf5
2 changed files with 9 additions and 8 deletions
|
|
@ -66,13 +66,6 @@ if get_option('libraries')
|
|||
endif
|
||||
endif
|
||||
|
||||
scanner_deps = [ dependency('expat') ]
|
||||
|
||||
if get_option('dtd_validation')
|
||||
scanner_deps += dependency('libxml-2.0')
|
||||
config_h.set('HAVE_LIBXML', 1)
|
||||
endif
|
||||
|
||||
configure_file(
|
||||
output: 'config.h',
|
||||
configuration: config_h,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue