xref: /OK3568_Linux_fs/buildroot/package/at-spi2-atk/0001-meson-add-tests-option.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 466d04a57b32417dbf2d5e818af1b7593af5f802 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sun, 3 May 2020 10:29:36 +0200
4Subject: [PATCH] meson: add tests option
5
6Add tests option to allow the user to build at-spi2-atk without tests,
7it is especially useful as one of the test requires libxml-2.0
8
9Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
10[Upstream status:
11https://gitlab.gnome.org/GNOME/at-spi2-atk/-/merge_requests/22]
12---
13 meson.build       | 4 +++-
14 meson_options.txt | 4 ++++
15 2 files changed, 7 insertions(+), 1 deletion(-)
16
17diff --git a/meson.build b/meson.build
18index 9fce5d6..61bc93d 100644
19--- a/meson.build
20+++ b/meson.build
21@@ -61,4 +61,6 @@ install_data('at-spi2-atk.desktop',
22
23 subdir('droute')
24 subdir('atk-adaptor')
25-subdir('tests')
26+if get_option('tests')
27+  subdir('tests')
28+endif
29diff --git a/meson_options.txt b/meson_options.txt
30index 24c9228..a4abdc2 100644
31--- a/meson_options.txt
32+++ b/meson_options.txt
33@@ -2,3 +2,7 @@ option('disable_p2p',
34        description: 'Disable peer-to-peer DBus connections',
35        type: 'boolean',
36        value: false)
37+option('tests',
38+       description: 'Whether to build tests',
39+       type: 'boolean',
40+       value: true)
41--
422.26.2
43
44