blob: 4a9bbbcbb1e6e830e622bb6668399816182e7079 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From 9e726133319298a835f724904c80e5adf78f475f Mon Sep 17 00:00:00 2001
2From: Tim Orling <timothy.t.orling@intel.com>
3Date: Fri, 15 Oct 2021 18:00:04 +0000
4Subject: [PATCH] Ensure x11_dep is defined
5
6bus/meson.build checks if x11_dep.found(), but this fails when
7-Dx11=no
8
9Upstream-Status: Submitted
10[https://gitlab.gnome.org/GNOME/at-spi2-core/-/merge_requests/60]
11
12References:
13 https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/42
14 https://mesonbuild.com/howtox.html#get-a-default-notfound-dependency
15
16Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
17---
18 meson.build | 2 ++
19 1 file changed, 2 insertions(+)
20
21diff --git a/meson.build b/meson.build
22index b5104c8..85d7a0e 100644
23--- a/meson.build
24+++ b/meson.build
25@@ -62,6 +62,8 @@ endif
26
27 x11_deps = []
28 x11_option = get_option('x11')
29+# ensure x11_dep is defined for use in bus/meson.build
30+x11_dep = dependency('', required: false)
31 if x11_option != 'no'
32 x11_dep = dependency('x11', required: false)
33