From c9baaf3e50d3e5870b86b41776b418630ed3db8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 26 Dec 2017 13:51:37 +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 7c29a7a2..eb96b7ba 100644 --- a/meson.build +++ b/meson.build @@ -197,7 +197,11 @@ presetdir = join_paths(get_option('datadir'), 'gstreamer-' + api_version, 'prese subdir('gst') subdir('ext') subdir('tests') -subdir('po') + +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : false).found() + subdir('po') +endif python3 = import('python3').find_python() run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")') -- 2.34.1