mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
meson: use subproject for keycodemapdb
By using a subproject, our own meson.build can use variables from the subproject instead of hard-coded paths. This is also the first step towards managing downloads with .wrap files instead of submodule. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
58e48b2e72
commit
c53648abba
5 changed files with 9 additions and 9 deletions
|
@ -1 +0,0 @@
|
|||
Subproject commit f5772a62ec52591ff6870b7e8ef32482371f22c6
|
|
@ -162,15 +162,15 @@ keymaps = [
|
|||
]
|
||||
|
||||
if have_system or xkbcommon.found()
|
||||
keycodemapdb_proj = subproject('keycodemapdb', required: true)
|
||||
foreach e : keymaps
|
||||
output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
|
||||
genh += custom_target(output,
|
||||
output: output,
|
||||
capture: true,
|
||||
input: files('keycodemapdb/data/keymaps.csv'),
|
||||
command: [python, files('keycodemapdb/tools/keymap-gen'),
|
||||
'code-map',
|
||||
'--lang', 'glib2',
|
||||
input: keycodemapdb_proj.get_variable('keymaps_csv'),
|
||||
command: [python, keycodemapdb_proj.get_variable('keymap_gen').full_path(),
|
||||
'code-map', '--lang', 'glib2',
|
||||
'--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
|
||||
'@INPUT0@', e[0], e[1]])
|
||||
endforeach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue