summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/recipes-gnome/libpeas/libpeas/0001-Do-not-build-tests-when-introspection-is-disabled-mi.patch
blob: 86586fe7101b962968e8375d18bbdca3545319d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 53a4f19887d9ae4e77f32dd6d71c8a7b516b4d5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Mon, 10 Aug 2020 21:53:33 +0200
Subject: [PATCH] Do not build tests when introspection is disabled/missing
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes:
| ../libpeas-1.26.0/tests/libpeas/introspection/meson.build:47:0: ERROR: Unknown variable "libpeas_gir".

Upstrem-Status: Submitted[https://gitlab.gnome.org/GNOME/libpeas/-/merge_requests/28]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 8322fea..43fb062 100644
--- a/meson.build
+++ b/meson.build
@@ -254,7 +254,9 @@ subdir('loaders')
 if build_demos == true
   subdir('peas-demo')
 endif
-subdir('tests')
+if generate_gir == true
+  subdir('tests')
+endif
 
 summary = [
   '',
-- 
2.26.2