diff options
| author | Marc-André Lureau | 2019-07-15 14:00:36 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2020-08-21 12:30:13 +0200 |
| commit | 2d78b56e7abe327fc411d4c96ce0b3cffc0d9282 (patch) | |
| tree | a22f7537b17f255cb04f0cf3a34f519cf2a2813b /ui | |
| parent | meson: add virtfs-proxy-helper (diff) | |
| download | qemu-2d78b56e7abe327fc411d4c96ce0b3cffc0d9282.tar.gz qemu-2d78b56e7abe327fc411d4c96ce0b3cffc0d9282.tar.xz qemu-2d78b56e7abe327fc411d4c96ce0b3cffc0d9282.zip | |
meson: keymap-gen
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/meson.build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ui/meson.build b/ui/meson.build new file mode 100644 index 0000000000..a6aa7f2b36 --- /dev/null +++ b/ui/meson.build @@ -0,0 +1,34 @@ +keymaps = [ + ['atset1', 'qcode'], + ['linux', 'qcode'], + ['qcode', 'atset1'], + ['qcode', 'atset2'], + ['qcode', 'atset3'], + ['qcode', 'linux'], + ['qcode', 'qnum'], + ['qcode', 'sun'], + ['qnum', 'qcode'], + ['usb', 'qcode'], + ['win32', 'qcode'], + ['x11', 'qcode'], + ['xorgevdev', 'qcode'], + ['xorgkbd', 'qcode'], + ['xorgxquartz', 'qcode'], + ['xorgxwin', 'qcode'], + ['osx', 'qcode'], +] + +if have_system + foreach e : keymaps + output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1]) + genh += custom_target(output, + output: output, + capture: true, + build_by_default: true, # to be removed when added to a target + input: files('keycodemapdb/data/keymaps.csv'), + command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'), + '--lang', 'glib2', + '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]), + 'code-map', '@INPUT0@', e[0], e[1]]) + endforeach +endif |
