meson: build translations
authorMike Gorse <mgorse@suse.com>
Mon, 21 Aug 2017 20:51:34 +0000 (15:51 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 21 Aug 2017 20:51:34 +0000 (15:51 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=786377

meson.build
po/meson.build [new file with mode: 0644]

index fab3d35..a7bfd22 100644 (file)
@@ -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 (file)
index 0000000..ff50cc2
--- /dev/null
@@ -0,0 +1,3 @@
+i18n = import('i18n')
+
+i18n.gettext('at-spi2-core', preset: 'glib')