diff options
author | Mike Gorse <mgorse@suse.com> | 2017-08-21 15:51:34 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2017-08-21 15:51:34 -0500 |
commit | 87f4cf75f6a86b2ee40a51709e30c0c8034673a2 (patch) | |
tree | 28ab947d314e692ed7e7ba56413a94e698af3fc5 | |
parent | 850b3cc117232ff6b477105d4dd6dff8e4886c77 (diff) | |
download | at-spi2-core-87f4cf75f6a86b2ee40a51709e30c0c8034673a2.tar.gz |
meson: build translations
https://bugzilla.gnome.org/show_bug.cgi?id=786377
-rw-r--r-- | meson.build | 6 | ||||
-rw-r--r-- | po/meson.build | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build index fab3d355..a7bfd220 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 00000000..ff50cc23 --- /dev/null +++ b/po/meson.build @@ -0,0 +1,3 @@ +i18n = import('i18n') + +i18n.gettext('at-spi2-core', preset: 'glib') |