meson: skip translations if gettext is not available
authorTim-Philipp Müller <tim@centricular.com>
Tue, 26 Dec 2017 12:49:25 +0000 (13:49 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 26 Dec 2017 12:49:25 +0000 (13:49 +0100)
meson.build

index d099d45..80930ce 100644 (file)
@@ -264,7 +264,11 @@ subdir('sys')
 subdir('tools')
 subdir('tests')
 subdir('pkgconfig')
-subdir('po')
+
+# xgettext is optional (on Windows for instance)
+if find_program('xgettext', required : false).found()
+  subdir('po')
+endif
 
 if build_machine.system() == 'windows'
   message('Disabling gtk-doc while building on Windows')