Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
meson: install keyboard maps only if necessary
They are required only for system emulation (i.e. have_system is true).

Signed-off-by: Carlos Santos <casantos@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
casantos authored and Michael Tokarev committed Jun 9, 2023
1 parent 3934956 commit 5727d9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pc-bios/keymaps/meson.build
Expand Up @@ -47,7 +47,7 @@ if native_qemu_keymap.found()
build_by_default: true,
output: km,
command: [native_qemu_keymap, '-f', '@OUTPUT@', args.split()],
install: true,
install: have_system,
install_dir: qemu_datadir / 'keymaps')
endforeach

Expand All @@ -56,4 +56,6 @@ else
install_data(keymaps.keys(), install_dir: qemu_datadir / 'keymaps')
endif

install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
if have_system
install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
endif

0 comments on commit 5727d9c

Please sign in to comment.