[devhelp/jjardon/webkit2gtk-4.1] meson.build: build against webkit2gtk-4.1




commit c297e6bad05951a4a42b27285f42638960d2846b
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Jul 24 02:00:58 2021 +0100

    meson.build: build against webkit2gtk-4.1

 meson.build | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 52df6ff2..7e6c9156 100644
--- a/meson.build
+++ b/meson.build
@@ -46,10 +46,15 @@ lt_revision = 3
 lt_age = 0
 LIBDEVHELP_LT_VERSION = '@0@.@1@.@2@'.format(lt_current, lt_revision, lt_age)
 
+webkit_dep = dependency('webkit2gtk-4.1', required : false)
+if not webkit_dep.found()
+  webkit_dep = dependency('webkit2gtk-4.0')
+endif
+
 LIBDEVHELP_PUBLIC_DEPS = [
   dependency('gio-2.0', version: '>= 2.64'),
   dependency('gtk+-3.0', version: '>= 3.22'),
-  dependency('webkit2gtk-4.0', version: '>= 2.26'),
+  webkit_dep,
 ]
 LIBDEVHELP_PRIVATE_DEPS = [
   dependency('gsettings-desktop-schemas'),


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