From 7d97bf2f81678a7e8192ddbad9d710f9ec01f3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 26 Dec 2017 13:50:24 +0100 Subject: [PATCH] meson: skip translations if gettext is not available --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6c1868bd9e..f322ed0f6f 100644 --- a/meson.build +++ b/meson.build @@ -280,9 +280,13 @@ subdir('gst') subdir('sys') subdir('ext') subdir('tests') -subdir('po') subdir('pkgconfig') +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : false).found() + subdir('po') +endif + configure_file(output : 'config.h', configuration : cdata) python3 = import('python3').find_python()