mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
datadir: Use bundle mechanism
softmmu/datadir.c had its own implementation to find files in the build tree, but now bundle mechanism provides the unified implementation which works for datadir and the other files. Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com> Message-Id: <20220624145039.49929-4-akihiko.odaki@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cf60ccc330
commit
882084a04a
6 changed files with 15 additions and 69 deletions
|
@ -40,9 +40,9 @@ else
|
|||
endif
|
||||
cp = find_program('cp')
|
||||
|
||||
t = []
|
||||
foreach km, args: keymaps
|
||||
if native_qemu_keymap.found()
|
||||
if native_qemu_keymap.found()
|
||||
t = []
|
||||
foreach km, args: keymaps
|
||||
# generate with qemu-kvm
|
||||
t += custom_target(km,
|
||||
build_by_default: true,
|
||||
|
@ -50,20 +50,11 @@ foreach km, args: keymaps
|
|||
command: [native_qemu_keymap, '-f', '@OUTPUT@', args.split()],
|
||||
install: true,
|
||||
install_dir: qemu_datadir / 'keymaps')
|
||||
else
|
||||
# copy from source tree
|
||||
t += custom_target(km,
|
||||
build_by_default: true,
|
||||
input: km,
|
||||
output: km,
|
||||
command: [cp, '@INPUT@', '@OUTPUT@'],
|
||||
install: true,
|
||||
install_dir: qemu_datadir / 'keymaps')
|
||||
endif
|
||||
endforeach
|
||||
endforeach
|
||||
|
||||
if native_qemu_keymap.found()
|
||||
alias_target('update-keymaps', t)
|
||||
else
|
||||
install_data(keymaps.keys(), install_dir: qemu_datadir / 'keymaps')
|
||||
endif
|
||||
|
||||
install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue