OSDN Git Service

meson: install keyboard maps only if necessary
authorCarlos Santos <casantos@redhat.com>
Mon, 27 Mar 2023 17:21:47 +0000 (14:21 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 9 Jun 2023 20:38:16 +0000 (23:38 +0300)
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>
pc-bios/keymaps/meson.build

index 158a3b4..bff3083 100644 (file)
@@ -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