diff options
author | Laurent Vivier <laurent@vivier.eu> | 2020-08-24 17:24:30 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-25 08:12:19 +0200 |
commit | 9755c94a50c8b845ad133a6e660f55ca131b9c7a (patch) | |
tree | 953fe0c6e70b847cede8dfefee705a16ca38232c | |
parent | 4113f4cfeea57774d492af48aec97a043d82a32e (diff) | |
download | qemu-9755c94a50c8b845ad133a6e660f55ca131b9c7a.zip qemu-9755c94a50c8b845ad133a6e660f55ca131b9c7a.tar.gz qemu-9755c94a50c8b845ad133a6e660f55ca131b9c7a.tar.bz2 |
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>
-rw-r--r-- | meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index f6e346a..f0fe5f8 100644 --- a/meson.build +++ b/meson.build @@ -1063,6 +1063,11 @@ if 'CONFIG_GUEST_AGENT' in config_host subdir('qga') 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() # 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, |