meson: fix keymaps without qemu-keymap
commit09db9b9db38e82acbc1fd4fa4661ac19c387380c
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 27 Aug 2020 10:26:17 +0000 (27 12:26 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 3 Sep 2020 10:46:56 +0000 (3 12:46 +0200)
tree27e1a80dbc143455f8dda4ce00218bcb7db468d2
parent45f7b7b9f38f5c4d1529a37c93dedfc26a231bba
meson: fix keymaps without qemu-keymap

In case the qemu-keymap tool generating them is neither installed on the
system nor built from sources (due to xkbcommon not being available)
qemu will not find the keymaps when started directly from the build
tree,

This happens because commit ddcf607fa3d6 ("meson: drop keymaps symlink")
removed the symlink to the source tree, and the special handling for
install doesn't help in case we do not install qemu.

Lets fix that by simply copying over the file from the source tree as
fallback.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200827102617.14448-1-kraxel@redhat.com>
[thuth: Rebased, changed "config_host['qemu_datadir']" to "qemu_datadir",
        added Gerd's UNLINK fix to configure script]
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure
pc-bios/keymaps/meson.build