]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui/spice: SPICE/QXL requires PIXMAN
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 30 Aug 2023 09:38:35 +0000 (13:38 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Nov 2023 10:04:25 +0000 (14:04 +0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/display/Kconfig
meson.build
ui/meson.build

index 7b3da68d1c0a50baff83a6d4a64606f5cafaab04..4d8b0cec40c8ca20e7ee5c0e01074e5f0039ea30 100644 (file)
@@ -93,7 +93,7 @@ config VGA
 
 config QXL
     bool
-    depends on SPICE && PCI
+    depends on SPICE && PCI && PIXMAN
     select VGA
 
 config VIRTIO_GPU
index 3e60f42f94890e2ffabce6f798169ed9c4e5a4dc..0f578ddbf4bd42841516f581a1a6304653453d49 100644 (file)
@@ -1015,7 +1015,11 @@ if not get_option('spice_protocol').auto() or have_system
                               method: 'pkg-config')
 endif
 spice = not_found
-if not get_option('spice').auto() or have_system
+if get_option('spice') \
+             .disable_auto_if(not have_system) \
+             .require(pixman.found(),
+                      error_message: 'cannot enable SPICE if pixman is not available') \
+             .allowed()
   spice = dependency('spice-server', version: '>=0.14.0',
                      required: get_option('spice'),
                      method: 'pkg-config')
index 19723188b55a0dbe996bfe444150f2110c0ed8c1..024f494fafe42e2dc18dd51cc5af9644e11f39fc 100644 (file)
@@ -141,12 +141,12 @@ if spice.found()
     'spice-display.c'
   ))
   ui_modules += {'spice-core' : spice_core_ss}
-endif
 
-if spice.found() and gio.found()
-  spice_ss = ss.source_set()
-  spice_ss.add(spice, gio, pixman, files('spice-app.c'))
-  ui_modules += {'spice-app': spice_ss}
+  if gio.found()
+    spice_ss = ss.source_set()
+    spice_ss.add(spice, gio, pixman, files('spice-app.c'))
+    ui_modules += {'spice-app': spice_ss}
+  endif
 endif
 
 keymaps = [