[at-spi2-core] meson: build translations



commit 87f4cf75f6a86b2ee40a51709e30c0c8034673a2
Author: Mike Gorse <mgorse suse com>
Date:   Mon Aug 21 15:51:34 2017 -0500

    meson: build translations
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786377

 meson.build    |    6 ++++++
 po/meson.build |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index fab3d35..a7bfd22 100644
--- a/meson.build
+++ b/meson.build
@@ -103,6 +103,8 @@ if introspection_option != 'no'
   endif
 endif
 
+xgettext = find_program('xgettext', required : false)
+
 configure_file(output: 'config.h', configuration: at_spi_conf)
 
 # Compat variables for pkgconfig
@@ -130,3 +132,7 @@ subdir('test')
 if get_option('enable_docs')
   subdir('doc/libatspi')
 endif
+
+if xgettext.found()
+  subdir('po')
+endif
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..ff50cc2
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,3 @@
+i18n = import('i18n')
+
+i18n.gettext('at-spi2-core', preset: 'glib')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]