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




commit 0a64805700698dfcaf3e755b40476b19cd85485b
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..4f10503e6 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)
+endif
 
 # 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]