[gnome-software/wip/hughsie/libxmlb: 15/15] trivial: Allow using libxmlb as a subproject



commit fcdfc22ca2b9d7849a383621eeeb693b9dee06ad
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 18 16:56:20 2018 +0100

    trivial: Allow using libxmlb as a subproject
    
    This might make it easier for people trying out gnome-software.

 meson.build              | 2 +-
 subprojects/libxmlb.wrap | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 567d4a70..dd6f1a33 100644
--- a/meson.build
+++ b/meson.build
@@ -98,7 +98,7 @@ conf.set('HAVE_LINUX_UNISTD_H', cc.has_header('linux/unistd.h'))
 
 appstream_glib = dependency('appstream-glib', version : '>= 0.7.14')
 gdk_pixbuf = dependency('gdk-pixbuf-2.0', version : '>= 2.32.0')
-libxmlb = dependency('xmlb', version : '>= 0.1.2')
+libxmlb = dependency('xmlb', version : '>= 0.1.2', fallback : ['libxmlb', 'libxmlb_dep'])
 gio_unix = dependency('gio-unix-2.0', version : '>= 2.56.0')
 gmodule = dependency('gmodule-2.0')
 gtk = dependency('gtk+-3.0', version : '>= 3.22.4')
diff --git a/subprojects/libxmlb.wrap b/subprojects/libxmlb.wrap
new file mode 100644
index 00000000..ea04cf53
--- /dev/null
+++ b/subprojects/libxmlb.wrap
@@ -0,0 +1,4 @@
+[wrap-git]
+directory = libxmlb
+url = https://github.com/hughsie/libxmlb.git
+revision = master


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