2020-06-29 19:55:39 +00:00
|
|
|
i18n = import('i18n')
|
|
|
|
|
2022-03-29 09:43:36 +00:00
|
|
|
potfiles_conf = configuration_data({
|
|
|
|
'SRCDIR': '',
|
|
|
|
'BUILDDIR': '',
|
|
|
|
})
|
2020-06-29 19:55:39 +00:00
|
|
|
|
|
|
|
potfiles = configure_file(
|
|
|
|
input: 'POTFILES.in',
|
2020-08-25 16:30:57 +00:00
|
|
|
output: '@BASENAME@',
|
2020-06-29 19:55:39 +00:00
|
|
|
configuration: potfiles_conf,
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.gettext(
|
|
|
|
meson.project_name(),
|
|
|
|
args: [
|
|
|
|
'--add-comments=TRANSLATORS:',
|
|
|
|
'--directory=@0@'.format(meson.source_root()),
|
|
|
|
'--directory=@0@'.format(meson.build_root()),
|
|
|
|
'--files-from=@0@'.format(meson.current_build_dir() / 'POTFILES'),
|
|
|
|
'--msgid-bugs-address=https://libvirt.org/bugs.html',
|
|
|
|
'--package-version=@0@'.format(meson.project_version()),
|
|
|
|
'--sort-output',
|
|
|
|
],
|
|
|
|
preset: 'glib',
|
|
|
|
)
|
|
|
|
|
|
|
|
potfiles_dep = [
|
|
|
|
access_gen_sources,
|
|
|
|
admin_client_generated,
|
|
|
|
admin_driver_generated,
|
|
|
|
remote_driver_generated,
|
|
|
|
remote_daemon_generated,
|
|
|
|
]
|
|
|
|
|
|
|
|
alias_target('libvirt-pot-dep', potfiles_dep)
|