[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 11 11:08:53 UTC 2022


 meson.build |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 4dbe0da23f0f4d581f61798ec2a8eee92afd1779
Author: Fabio Estevam <festevam at denx.de>
Date:   Tue Oct 11 07:18:37 2022 -0300

    meson: Allow building on a Wayland-only environment
    
    Currently, it is not possible to build spice-gtk on a Wayland-only
    environment due to the x11 dependency in meson.
    
    Since commit a7381b0864b7 ("Allow to build without X11 gdk backend)
    it is possible to build spice-gtk without X11 GDK backend, so make
    the x11 dependency in meson optional.
    
    Signed-off-by: Fabio Estevam <festevam at denx.de>
    Acked-by: Frediano Ziglio <freddy77 at gmail.com>

diff --git a/meson.build b/meson.build
index dd46294..c163a44 100644
--- a/meson.build
+++ b/meson.build
@@ -152,7 +152,10 @@ if d.found()
   spice_gtk_deps += d
   if host_machine.system() != 'windows'
     spice_gtk_deps += dependency('epoxy')
-    spice_gtk_deps += dependency('x11')
+    d = dependency('x11', required: false)
+    if d.found()
+      spice_gtk_deps += d
+    endif
     d = dependency('libva-x11', required: false)
     if d.found()
       spice_gtk_deps += d


More information about the Spice-commits mailing list