diff options
Diffstat (limited to 'meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch')
-rw-r--r-- | meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch new file mode 100644 index 0000000000..8fba0124cf --- /dev/null +++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection/0001-meson.build-exclude-girepo_dep-if-introspection-data.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From ef5446af0ddad6a341b47957097ac40c6cb5e6d3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 20 Oct 2020 22:40:14 +0200 | ||
4 | Subject: [PATCH] meson.build: exclude girepo_dep if introspection data is | ||
5 | disabled | ||
6 | |||
7 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/248] | ||
8 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
9 | --- | ||
10 | meson.build | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/meson.build b/meson.build | ||
14 | index 14af2b1..a3c27c3 100644 | ||
15 | --- a/meson.build | ||
16 | +++ b/meson.build | ||
17 | @@ -283,7 +283,7 @@ pkg.generate( | ||
18 | # FIXME: meson.override_dependency() and declare_dependency()'s variable arguments | ||
19 | # are new in Meson 0.54.0, older versions of Meson won't be able to use g-i as | ||
20 | # subproject anyway | ||
21 | -if meson.version().version_compare('>=0.54.0') | ||
22 | +if meson.version().version_compare('>=0.54.0') and get_option('build_introspection_data') == true | ||
23 | girepo_dep = declare_dependency( | ||
24 | sources: typelibs, | ||
25 | dependencies: girepo_dep, | ||