po: Don't generate POTFILES

Now that we have dropped prefixes from the file, it no longer
needs to go through configure_file() and we can use it directly.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2022-05-16 16:57:08 +02:00
parent 4172d1aedc
commit 55ae46a6df
3 changed files with 4 additions and 15 deletions

View File

@ -1476,10 +1476,10 @@ perl_translatable_files_list_ = \
-e '}'
# Verify that all source files using _() (more specifically, files that
# match $(_gl_translatable_string_re)) are listed in po/POTFILES.in.
po_file ?= $(top_srcdir)/po/POTFILES.in
# match $(_gl_translatable_string_re)) are listed in po/POTFILES.
po_file ?= $(top_srcdir)/po/POTFILES
# List of additional files that we want to pick up in our POTFILES.in
# List of additional files that we want to pick up in our POTFILES
# This is all generated files for RPC code.
generated_files = \
$(top_builddir)/src/*.[ch] \

View File

@ -1,16 +1,5 @@
i18n = import('i18n')
potfiles_conf = configuration_data({
'SRCDIR': '',
'BUILDDIR': '',
})
potfiles = configure_file(
input: 'POTFILES.in',
output: '@BASENAME@',
configuration: potfiles_conf,
)
i18n.gettext(
meson.project_name(),
args: [
@ -20,7 +9,7 @@ i18n.gettext(
'--add-comments=TRANSLATORS:',
'--directory=@0@'.format(meson.source_root()),
'--directory=@0@'.format(meson.build_root()),
'--files-from=@0@'.format(meson.current_build_dir() / 'POTFILES'),
'--files-from=@0@'.format(meson.current_source_dir() / 'POTFILES'),
'--msgid-bugs-address=https://libvirt.org/bugs.html',
'--package-version=@0@'.format(meson.project_version()),
'--sort-output',