-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] \
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: [
'--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',