[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 12/18] ui/spice: SPICE/QXL requires PIXMAN
From: |
marcandre . lureau |
Subject: |
[PATCH v3 12/18] ui/spice: SPICE/QXL requires PIXMAN |
Date: |
Tue, 10 Oct 2023 11:38:24 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
meson.build | 6 +++++-
hw/display/Kconfig | 2 +-
ui/meson.build | 10 +++++-----
3 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/meson.build b/meson.build
index 291c2f1301..a84a2f25d0 100644
--- a/meson.build
+++ b/meson.build
@@ -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')
diff --git a/hw/display/Kconfig b/hw/display/Kconfig
index 7b3da68d1c..4d8b0cec40 100644
--- a/hw/display/Kconfig
+++ b/hw/display/Kconfig
@@ -93,7 +93,7 @@ config VGA
config QXL
bool
- depends on SPICE && PCI
+ depends on SPICE && PCI && PIXMAN
select VGA
config VIRTIO_GPU
diff --git a/ui/meson.build b/ui/meson.build
index b3525ef064..7f806a6d48 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -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 = [
--
2.41.0
- [PATCH v3 02/18] ui: compile out some qemu-pixman functions when !PIXMAN, (continued)
- [PATCH v3 02/18] ui: compile out some qemu-pixman functions when !PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 03/18] ui: add pixman-compat.h, marcandre . lureau, 2023/10/10
- [PATCH v3 04/18] ui/console: allow to override the default VC, marcandre . lureau, 2023/10/10
- [PATCH v3 05/18] ui/vc: console-vc requires PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 06/18] qmp/hmp: disable screendump if PIXMAN is missing, marcandre . lureau, 2023/10/10
- [PATCH v3 08/18] ui/console: when PIXMAN is unavailable, don't draw placeholder msg, marcandre . lureau, 2023/10/10
- [PATCH v3 09/18] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 10/18] ui/gl: opengl doesn't require PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 07/18] virtio-gpu: replace PIXMAN for region/rect test, marcandre . lureau, 2023/10/10
- [PATCH v3 11/18] ui/vnc: VNC requires PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 12/18] ui/spice: SPICE/QXL requires PIXMAN,
marcandre . lureau <=
- [PATCH v3 15/18] arm/kconfig: XLNX_ZYNQMP_ARM depends on PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 16/18] hw/sm501: allow compiling without PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 18/18] build-sys: make pixman actually optional, marcandre . lureau, 2023/10/10
- [PATCH v3 13/18] ui/gtk: -display gtk requires PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 14/18] ui/dbus: do not require PIXMAN, marcandre . lureau, 2023/10/10
- [PATCH v3 17/18] hw/display: make ATI_VGA depend on PIXMAN, marcandre . lureau, 2023/10/10