2019-09-19 18:24:43 +02:00
|
|
|
keymaps = {
|
|
|
|
'ar': '-l ar',
|
|
|
|
'bepo': '-l fr -v dvorak',
|
|
|
|
'cz': '-l cz',
|
|
|
|
'da': '-l dk',
|
|
|
|
'de': '-l de -v nodeadkeys',
|
|
|
|
'de-ch': '-l ch',
|
|
|
|
'en-gb': '-l gb',
|
|
|
|
'en-us': '-l us',
|
|
|
|
'es': '-l es',
|
|
|
|
'et': '-l et',
|
|
|
|
'fi': '-l fi',
|
|
|
|
'fo': '-l fo',
|
|
|
|
'fr': '-l fr -v nodeadkeys',
|
|
|
|
'fr-be': '-l be',
|
|
|
|
'fr-ca': '-l ca -v fr',
|
|
|
|
'fr-ch': '-l ch -v fr',
|
|
|
|
'hr': '-l hr',
|
|
|
|
'hu': '-l hu',
|
|
|
|
'is': '-l is',
|
|
|
|
'it': '-l it',
|
|
|
|
'ja': '-l jp -m jp106',
|
|
|
|
'lt': '-l lt',
|
|
|
|
'lv': '-l lv',
|
|
|
|
'mk': '-l mk',
|
|
|
|
'nl': '-l nl',
|
|
|
|
'no': '-l no',
|
|
|
|
'pl': '-l pl',
|
|
|
|
'pt': '-l pt',
|
|
|
|
'pt-br': '-l br',
|
|
|
|
'ru': '-l ru',
|
|
|
|
'th': '-l th',
|
|
|
|
'tr': '-l tr',
|
|
|
|
}
|
|
|
|
|
2023-02-06 19:34:02 +01:00
|
|
|
if meson.is_cross_build() or not xkbcommon.found()
|
2019-09-19 18:24:43 +02:00
|
|
|
native_qemu_keymap = find_program('qemu-keymap', required: false, disabler: true)
|
|
|
|
else
|
|
|
|
native_qemu_keymap = qemu_keymap
|
|
|
|
endif
|
2020-08-27 12:26:17 +02:00
|
|
|
|
2022-06-24 16:50:38 +02:00
|
|
|
if native_qemu_keymap.found()
|
|
|
|
t = []
|
|
|
|
foreach km, args: keymaps
|
2020-08-27 12:26:17 +02:00
|
|
|
# generate with qemu-kvm
|
|
|
|
t += custom_target(km,
|
|
|
|
build_by_default: true,
|
|
|
|
output: km,
|
|
|
|
command: [native_qemu_keymap, '-f', '@OUTPUT@', args.split()],
|
2020-09-18 15:03:54 +02:00
|
|
|
install: true,
|
2020-08-27 12:26:17 +02:00
|
|
|
install_dir: qemu_datadir / 'keymaps')
|
2022-06-24 16:50:38 +02:00
|
|
|
endforeach
|
2020-08-27 12:26:17 +02:00
|
|
|
|
2019-09-19 18:24:43 +02:00
|
|
|
alias_target('update-keymaps', t)
|
2022-06-24 16:50:38 +02:00
|
|
|
else
|
|
|
|
install_data(keymaps.keys(), install_dir: qemu_datadir / 'keymaps')
|
2019-09-19 18:24:43 +02:00
|
|
|
endif
|
|
|
|
|
2020-08-26 13:04:16 +02:00
|
|
|
install_data(['sl', 'sv'], install_dir: qemu_datadir / 'keymaps')
|