diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-12-26 13:46:20 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-26 13:46:20 +0100 |
commit | d51ff55af1728306f4bf6678c1ffec204a9cc819 (patch) | |
tree | 9946b562b1d5f7376f7416d413506946997bab45 /meson.build | |
parent | ce00ec8bce5111e492d36f190d2fc9351cb4940b (diff) |
meson: skip translations if gettext is not available
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index ef22d2b58..387e46f4e 100644 --- a/meson.build +++ b/meson.build @@ -434,9 +434,13 @@ subdir('plugins') subdir('tools') subdir('pkgconfig') subdir('tests') -subdir('po') subdir('data') +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : false).found() + subdir('po') +endif + configure_file(output : 'config.h', configuration : cdata) if build_machine.system() == 'windows' |