libvirt/po/meson.build
Andrea Bolognani 88c3490aa1 meson: Use @BASENAME@ more
This patch takes care of just the obvious cases: there are
many more situations where the data we pass to configure_file()
could likely be obtained in a more effective way, but we can
address the low-hanging fruits as a first approximation.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2020-09-01 13:22:24 +02:00

36 lines
852 B
Meson

i18n = import('i18n')
potfiles_conf = configuration_data()
potfiles_conf.set('SRCDIR', '')
potfiles_conf.set('BUILDDIR', '')
potfiles = configure_file(
input: 'POTFILES.in',
output: '@BASENAME@',
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)