aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-15 14:48:31 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:13 -0400
commitade60d4fe1b5e840080a113885af2bcca6f69bc3 (patch)
tree3618e8342d35339dc2e6a8db78047ebbe711d7f7 /meson.build
parent8f51e01c0141659435318c41af6e37402f3eb2de (diff)
downloadqemu-ade60d4fe1b5e840080a113885af2bcca6f69bc3.zip
qemu-ade60d4fe1b5e840080a113885af2bcca6f69bc3.tar.gz
qemu-ade60d4fe1b5e840080a113885af2bcca6f69bc3.tar.bz2
meson: add qemu-keymap
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 3568b48..9ec7dd9 100644
--- a/meson.build
+++ b/meson.build
@@ -111,6 +111,11 @@ libcap_ng = not_found
if 'CONFIG_LIBCAP_NG' in config_host
libcap_ng = declare_dependency(link_args: config_host['LIBCAP_NG_LIBS'].split())
endif
+xkbcommon = not_found
+if 'CONFIG_XKBCOMMON' in config_host
+ xkbcommon = declare_dependency(compile_args: config_host['XKBCOMMON_CFLAGS'].split(),
+ link_args: config_host['XKBCOMMON_LIBS'].split())
+endif
rt = cc.find_library('rt', required: false)
libiscsi = not_found
if 'CONFIG_LIBISCSI' in config_host
@@ -305,6 +310,11 @@ if have_tools
subdir('contrib/rdmacm-mux')
subdir('contrib/elf2dmp')
+ if 'CONFIG_XKBCOMMON' in config_host
+ executable('qemu-keymap', files('qemu-keymap.c', 'ui/input-keymap.c'),
+ dependencies: [qemuutil, xkbcommon], install: true)
+ endif
+
if 'CONFIG_VHOST_USER' in config_host
subdir('contrib/libvhost-user')
subdir('contrib/vhost-user-blk')