meson: cleanup xkbcommon detection
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
48328880fd
commit
1917ec6d56
12
meson.build
12
meson.build
@ -165,10 +165,11 @@ libcap_ng = not_found
|
|||||||
if 'CONFIG_LIBCAP_NG' in config_host
|
if 'CONFIG_LIBCAP_NG' in config_host
|
||||||
libcap_ng = declare_dependency(link_args: config_host['LIBCAP_NG_LIBS'].split())
|
libcap_ng = declare_dependency(link_args: config_host['LIBCAP_NG_LIBS'].split())
|
||||||
endif
|
endif
|
||||||
xkbcommon = dependency('xkbcommon', required: get_option('xkbcommon'), static: enable_static,
|
if get_option('xkbcommon').auto() and not have_system and not have_tools
|
||||||
include_type: 'system')
|
xkbcommon = not_found
|
||||||
if xkbcommon.found()
|
else
|
||||||
xkbcommon = declare_dependency(dependencies: xkbcommon)
|
xkbcommon = dependency('xkbcommon', required: get_option('xkbcommon'),
|
||||||
|
static: enable_static)
|
||||||
endif
|
endif
|
||||||
slirp = not_found
|
slirp = not_found
|
||||||
if config_host.has_key('CONFIG_SLIRP')
|
if config_host.has_key('CONFIG_SLIRP')
|
||||||
@ -1078,9 +1079,6 @@ endif
|
|||||||
|
|
||||||
# Don't build qemu-keymap if xkbcommon is not explicitly enabled
|
# Don't build qemu-keymap if xkbcommon is not explicitly enabled
|
||||||
# when we don't build tools or system
|
# when we don't build tools or system
|
||||||
if get_option('xkbcommon').auto() and not have_system and not have_tools
|
|
||||||
xkbcommon = not_found
|
|
||||||
endif
|
|
||||||
if xkbcommon.found()
|
if xkbcommon.found()
|
||||||
# used for the update-keymaps target, so include rules even if !have_tools
|
# used for the update-keymaps target, so include rules even if !have_tools
|
||||||
qemu_keymap = executable('qemu-keymap', files('qemu-keymap.c', 'ui/input-keymap.c') + genh,
|
qemu_keymap = executable('qemu-keymap', files('qemu-keymap.c', 'ui/input-keymap.c') + genh,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user