[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 045/150] meson: add qemu-keymap
From: |
Paolo Bonzini |
Subject: |
[PULL 045/150] meson: add qemu-keymap |
Date: |
Tue, 18 Aug 2020 10:08:40 -0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile | 5 -----
configure | 4 +---
meson.build | 10 ++++++++++
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index b66b443037..ec3c0a7371 100644
--- a/Makefile
+++ b/Makefile
@@ -420,8 +420,6 @@ qemu-nbd$(EXESUF): qemu-nbd.o $(authz-obj-y) $(block-obj-y)
$(crypto-obj-y) $(io
qemu-io$(EXESUF): qemu-io.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y)
$(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS)
qemu-storage-daemon$(EXESUF): qemu-storage-daemon.o $(authz-obj-y)
$(block-obj-y) $(crypto-obj-y) $(chardev-obj-y) $(io-obj-y) $(qom-obj-y)
$(storage-daemon-obj-y) $(COMMON_LDADDS)
-qemu-keymap$(EXESUF): qemu-keymap.o ui/input-keymap.o $(COMMON_LDADDS)
-
qemu-edid$(EXESUF): qemu-edid.o hw/display/edid-generate.o $(COMMON_LDADDS)
fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o
fsdev/9p-marshal.o fsdev/9p-iov-marshal.o $(COMMON_LDADDS)
@@ -434,9 +432,6 @@ endif
qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/scripts/hxtool
$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< >
$@,"GEN","$@")
-qemu-keymap$(EXESUF): LIBS += $(XKBCOMMON_LIBS)
-qemu-keymap$(EXESUF): QEMU_CFLAGS += $(XKBCOMMON_CFLAGS)
-
module_block.h: $(SRC_PATH)/scripts/modules/module_block.py config-host.mak
$(call quiet-command,$(PYTHON) $< $@ \
$(addprefix $(SRC_PATH)/,$(patsubst %.mo,%.c,$(block-obj-m))), \
diff --git a/configure b/configure
index 3c09f268c6..15ac11de9f 100755
--- a/configure
+++ b/configure
@@ -6703,9 +6703,6 @@ if test "$softmmu" = yes ; then
fi
mpath=no
fi
- if test "$xkbcommon" = "yes"; then
- tools="qemu-keymap\$(EXESUF) $tools"
- fi
fi
# Probe for guest agent support/options
@@ -7022,6 +7019,7 @@ if test "$vnc_png" = "yes" ; then
echo "CONFIG_VNC_PNG=y" >> $config_host_mak
fi
if test "$xkbcommon" = "yes" ; then
+ echo "CONFIG_XKBCOMMON=y" >> $config_host_mak
echo "XKBCOMMON_CFLAGS=$xkbcommon_cflags" >> $config_host_mak
echo "XKBCOMMON_LIBS=$xkbcommon_libs" >> $config_host_mak
fi
diff --git a/meson.build b/meson.build
index c733beb02d..17a0de91ca 100644
--- a/meson.build
+++ b/meson.build
@@ -108,6 +108,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
@@ -302,6 +307,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')
--
2.26.2
- [PULL 036/150] contrib/ivshmem: convert to meson, (continued)
- [PULL 036/150] contrib/ivshmem: convert to meson, Paolo Bonzini, 2020/08/18
- [PULL 035/150] contrib/vhost-user-gpu: convert to meson, Paolo Bonzini, 2020/08/18
- [PULL 044/150] meson: add qemu-bridge-helper, Paolo Bonzini, 2020/08/18
- [PULL 042/150] meson: add msi generation, Paolo Bonzini, 2020/08/18
- [PULL 046/150] meson: add qemu-edid, Paolo Bonzini, 2020/08/18
- [PULL 038/150] meson: add macos dependencies, Paolo Bonzini, 2020/08/18
- [PULL 025/150] libqemuutil, qapi, trace: convert to meson, Paolo Bonzini, 2020/08/18
- [PULL 033/150] contrib/rdmacm-mux: convert to Meson, Paolo Bonzini, 2020/08/18
- [PULL 037/150] contrib/elf2dmp: convert to meson, Paolo Bonzini, 2020/08/18
- [PULL 039/150] meson: add solaris and Haiku libraries, Paolo Bonzini, 2020/08/18
- [PULL 045/150] meson: add qemu-keymap,
Paolo Bonzini <=
- [PULL 041/150] meson: convert vss-win32, Paolo Bonzini, 2020/08/18
- [PULL 043/150] meson: convert dummy Windows qga/qemu-ga target, Paolo Bonzini, 2020/08/18
- [PULL 050/150] meson: generate shader headers, Paolo Bonzini, 2020/08/18
- [PULL 049/150] meson: generate qemu-version.h, Paolo Bonzini, 2020/08/18
- [PULL 052/150] meson: handle edk2 bios and descriptors, Paolo Bonzini, 2020/08/18
- [PULL 047/150] meson: add virtfs-proxy-helper, Paolo Bonzini, 2020/08/18
- [PULL 048/150] meson: keymap-gen, Paolo Bonzini, 2020/08/18
- [PULL 051/150] meson: generate hxtool files, Paolo Bonzini, 2020/08/18
- [PULL 058/150] meson: convert crypto directory to Meson, Paolo Bonzini, 2020/08/18
- [PULL 059/150] meson: convert io directory to Meson, Paolo Bonzini, 2020/08/18