meson: skip translations if gettext is not available

This commit is contained in:
Tim-Philipp Müller 2017-12-26 13:52:18 +01:00
parent 0ecac8f68a
commit ef557b5667

View file

@ -461,6 +461,10 @@ subdir('sys')
subdir('ext')
subdir('tests')
subdir('pkgconfig')
subdir('po')
# xgettext is optional (on Windows for instance)
if find_program('xgettext', required : false).found()
subdir('po')
endif
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')