[libsoup] meson: Make gettext optional



commit d0af24e7caf092724471dbcb826f531e40b418aa
Author: Seungha Yang <seungha yang navercorp com>
Date:   Tue Apr 9 22:12:28 2019 +0900

    meson: Make gettext optional
    
    gettext might not be available on Windows

 meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 25887f96..6ca8b699 100644
--- a/meson.build
+++ b/meson.build
@@ -302,7 +302,10 @@ cdata.set_quoted('GETTEXT_PACKAGE', libsoup_api_name)
 configure_file(output : 'config.h', configuration : cdata)
 
 subdir('libsoup')
-subdir('po')
+# xgettext is optional (on Windows for instance)
+if find_program('xgettext', required : false).found()
+  subdir('po')
+endif
 subdir('examples')
 
 if get_option('tests')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]