[evince/wip/hadess/libhandy-subproject: 47/47] build: Allow building without libhandy-1 available




commit 2408fd4a4d97aae5cb47bd5032bafa34f1e3b56f
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Feb 21 17:17:15 2021 +0100

    build: Allow building without libhandy-1 available

 meson.build               | 3 ++-
 subprojects/libhandy.wrap | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index ed628182..64b780c5 100644
--- a/meson.build
+++ b/meson.build
@@ -163,7 +163,8 @@ gmodule_dep = dependency('gmodule-2.0')
 gmodule_no_export_dep = dependency('gmodule-no-export-2.0', version: glib_req_version)
 gtk_dep = dependency('gtk+-3.0', version: gtk_req_version)
 gthread_dep = dependency('gthread-2.0', version: glib_req_version)
-hdy_dep = dependency('libhandy-1', version: hdy_req_version)
+# Keep the version here synchronised with subprojects/libhandy.wrap
+hdy_dep = dependency('libhandy-1', version: hdy_req_version, fallback: ['libhandy', 'libhandy_dep'])
 
 m_dep = cc.find_library('m')
 
diff --git a/subprojects/libhandy.wrap b/subprojects/libhandy.wrap
new file mode 100644
index 00000000..24c18155
--- /dev/null
+++ b/subprojects/libhandy.wrap
@@ -0,0 +1,5 @@
+[wrap-git]
+directory=libhandy
+url=https://gitlab.gnome.org/GNOME/libhandy.git
+# See comment in meson.build
+revision=e455f608e7a4ac4ab51e0bb70296f40862054f2b


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