[grilo-plugins/sam/grilo-subproject] build: Allow building grilo as a Meson subproject
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/sam/grilo-subproject] build: Allow building grilo as a Meson subproject
- Date: Sun, 29 Sep 2019 15:59:54 +0000 (UTC)
commit 15915cc8fb39c3db3839b088a2b0c16d7e977984
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Sep 29 16:56:26 2019 +0200
build: Allow building grilo as a Meson subproject
If a new enough version of Grilo isn't installed when trying to build
grilo-plugins, Meson will now automatically clone the repo from Gitlab
and build that.
This can be disabled with the `--wrap-mode=nodownload` configure time
option.
Depends on: https://gitlab.gnome.org/GNOME/grilo/merge_requests/50
meson.build | 3 ++-
subprojects/grilo.wrap | 4 ++++
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index f0fd5142..b965658d 100644
--- a/meson.build
+++ b/meson.build
@@ -34,7 +34,8 @@ grilo_required_info = '>= @0@'.format(grilo_required)
glib_dep = dependency('glib-2.0', version: glib2_required_info, required: true)
gmodule_dep = dependency('gmodule-2.0', version: glib2_required_info, required: true)
gobject_dep = dependency('gobject-2.0', version: glib2_required_info, required: true)
-grilo_dep = dependency('grilo-0.3', version: grilo_required_info, required: true)
+grilo_dep = dependency('grilo-0.3', version: grilo_required_info, required: true,
+ fallback: ['grilo', 'libgrl_dep'])
pkgconf = configuration_data()
pkgconf.set('VERSION', plugin_version)
diff --git a/subprojects/grilo.wrap b/subprojects/grilo.wrap
new file mode 100644
index 00000000..4dafc57c
--- /dev/null
+++ b/subprojects/grilo.wrap
@@ -0,0 +1,4 @@
+[wrap-git]
+directory = grilo
+url = https://gitlab.gnome.org/gnome/grilo
+revision = head
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]