[at-spi2-core: 1/2] Ensure x11_dep is defined




commit 2175d89198440d948075f3268aec5f45430afb3d
Author: Tim Orling <ticotimo gmail com>
Date:   Fri Oct 15 12:44:39 2021 -0700

    Ensure x11_dep is defined
    
    bus/meson.build checks if x11_dep.found(), but this fails when
    -Dx11=no
    
    References:
      https://gitlab.gnome.org/GNOME/at-spi2-core/-/issues/42
      https://mesonbuild.com/howtox.html#get-a-default-notfound-dependency
    
    Signed-off-by: Tim Orling <ticotimo gmail com>

 meson.build | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index b5104c8..cfd2e09 100644
--- a/meson.build
+++ b/meson.build
@@ -62,6 +62,8 @@ endif
 
 x11_deps = []
 x11_option = get_option('x11')
+# ensure x11_dep is defined for use elsewhere, such as bus/meson.build
+x11_dep = dependency('', required: false)
 if x11_option != 'no'
   x11_dep = dependency('x11', required: false)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]