qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] po/meson: make i18n module optional
@ 2023-01-24  3:47 Anton Kochkov
  2023-01-24  7:20 ` Marc-André Lureau
  2023-01-24 11:30 ` Daniel P. Berrangé
  0 siblings, 2 replies; 4+ messages in thread
From: Anton Kochkov @ 2023-01-24  3:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anton Kochkov

This is necessary for Muon build system compatibility and
prevents the following error:

meson.build:4:8: error module 'i18n' is unimplemented,
  If you would like to make your build files portable to muon,
  use `import('i18n', required: false)`,
  and then check the .found() method before use.
  4 |   i18n.gettext(meson.project_name(),
             ^
qemu/meson.build:3640:3: error in function subdir()
3640 |   subdir('po')
         ^

Signed-off-by: Anton Kochkov <anton.kochkov@proton.me>
---
 po/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/po/meson.build b/po/meson.build
index a863f0575f..f7be95cf5f 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,4 +1,4 @@
-i18n = import('i18n')
+i18n = import('i18n', required: false)

 if find_program('xgettext', required: get_option('gettext')).found()
   i18n.gettext(meson.project_name(),
--
2.39.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-24 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24  3:47 [PATCH] po/meson: make i18n module optional Anton Kochkov
2023-01-24  7:20 ` Marc-André Lureau
2023-01-24 11:30 ` Daniel P. Berrangé
2023-01-24 12:36   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).