mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
build: Use gettext to translate policy file with meson
Recent versions of gettext can merge translations in xml files, so use it and remove the intltool dependency for meson builds.
This commit is contained in:
committed by
Bastien Nocera
parent
9bed3bed3f
commit
53d80c1474
@ -22,17 +22,10 @@ configure_file(
|
||||
)
|
||||
|
||||
polkit_policy = 'net.reactivated.fprint.device.policy'
|
||||
polkit_policy_target = custom_target(polkit_policy,
|
||||
polkit_policy_target = i18n.merge_file(polkit_policy,
|
||||
input: '@0@.in'.format(polkit_policy),
|
||||
output: polkit_policy,
|
||||
command: [
|
||||
find_program('intltool-merge'),
|
||||
'-x',
|
||||
'-u',
|
||||
meson.source_root() / 'po',
|
||||
'@INPUT@',
|
||||
'@OUTPUT@',
|
||||
],
|
||||
po_dir: meson.source_root() / 'po',
|
||||
install: true,
|
||||
install_dir: polkit_policy_directory,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user