meson: generate shader headers
[qemu/ar7.git] / ui / meson.build
blob35da0d8d26bb00c11751e095514fab6032429367
1 keymaps = [
2   ['atset1', 'qcode'],
3   ['linux', 'qcode'],
4   ['qcode', 'atset1'],
5   ['qcode', 'atset2'],
6   ['qcode', 'atset3'],
7   ['qcode', 'linux'],
8   ['qcode', 'qnum'],
9   ['qcode', 'sun'],
10   ['qnum', 'qcode'],
11   ['usb', 'qcode'],
12   ['win32', 'qcode'],
13   ['x11', 'qcode'],
14   ['xorgevdev', 'qcode'],
15   ['xorgkbd', 'qcode'],
16   ['xorgxquartz', 'qcode'],
17   ['xorgxwin', 'qcode'],
18   ['osx', 'qcode'],
21 if have_system
22   foreach e : keymaps
23     output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
24     genh += custom_target(output,
25                   output: output,
26                   capture: true,
27                   build_by_default: true, # to be removed when added to a target
28                   input: files('keycodemapdb/data/keymaps.csv'),
29                   command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'),
30                             '--lang', 'glib2',
31                             '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
32                             'code-map', '@INPUT0@', e[0], e[1]])
33   endforeach
34 endif
36 subdir('shader')