mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
meson: avoid compiling qemu-keymap by default
qemu-keymap is not needed with linux-user, so disable it by default if
tools and system are disabled (tools are disabled by default with linux-user).
Avoid this error with statically linked binaries:
Linking target qemu-keymap
/usr/bin/ld: cannot find -lxkbcommon
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-id: 20200824152430.1844159-3-laurent@vivier.eu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
4113f4cfee
commit
9755c94a50
1 changed files with 5 additions and 0 deletions
|
|
@ -1063,6 +1063,11 @@ if 'CONFIG_GUEST_AGENT' in config_host
|
||||||
subdir('qga')
|
subdir('qga')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Don't build qemu-keymap if xkbcommon is not explicitly enabled
|
||||||
|
# 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…
Add table
Add a link
Reference in a new issue