[geary/jjardon/webkit2gtk-4.1] meson.build: Build against webkit2gtk-4.1 if available




commit 722c76b161e7166e00ba0bdf884234e72243bef6
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Jul 24 23:33:02 2021 +0100

    meson.build: Build against webkit2gtk-4.1 if available

 meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 233e8c56b..72c373e47 100644
--- a/meson.build
+++ b/meson.build
@@ -67,7 +67,10 @@ glib = dependency('glib-2.0', version: '>=' + target_glib)
 gmime = dependency('gmime-3.0', version: '>= 3.2.4')
 gtk = dependency('gtk+-3.0', version: '>=' + target_gtk)
 sqlite = dependency('sqlite3', version: '>= 3.24')
-webkit2gtk = dependency('webkit2gtk-4.0', version: '>=' + target_webkit)
+webkit2gtk = dependency('webkit2gtk-4.1', required : false)
+if not webkit2gtk.found()
+  webkit2gtk = dependency('webkit2gtk-4.0', version: '>=' + target_webkit)
+fi
 
 # Secondary deps - keep sorted alphabetically
 # We need appdata.its from appstream-glib:


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