From: Mike Gorse Date: Mon, 21 Aug 2017 20:51:34 +0000 (-0500) Subject: meson: build translations X-Git-Tag: AT_SPI2_CORE_2_25_91~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fat-spi2-core.git;a=commitdiff_plain;h=87f4cf75f6a86b2ee40a51709e30c0c8034673a2 meson: build translations https://bugzilla.gnome.org/show_bug.cgi?id=786377 --- 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')