Message ID | 20230327172147.196607-1-casantos@redhat.com |
---|---|
State | New |
Headers | show |
Series | [V3] meson: install keyboard maps only if necessary | expand |
On Mon, Mar 27, 2023 at 02:21:47PM -0300, casantos@redhat.com wrote: > From: Carlos Santos <casantos@redhat.com> > > 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> With regards, Daniel
diff --git a/pc-bios/keymaps/meson.build b/pc-bios/keymaps/meson.build index 158a3b410c..bff3083313 100644 --- a/pc-bios/keymaps/meson.build +++ b/pc-bios/keymaps/meson.build @@ -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 @@ -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