[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 16/23] ui/vnc: VNC requires PIXMAN
From: |
marcandre . lureau |
Subject: |
[PATCH v6 16/23] ui/vnc: VNC requires PIXMAN |
Date: |
Wed, 25 Oct 2023 23:08:10 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
meson.build | 6 +++++-
ui/meson.build | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 2d67cbf6d6..f3fc1ba68d 100644
--- a/meson.build
+++ b/meson.build
@@ -1536,7 +1536,11 @@ endif
vnc = not_found
jpeg = not_found
sasl = not_found
-if get_option('vnc').allowed() and have_system
+if get_option('vnc') \
+ .disable_auto_if(not have_system) \
+ .require(pixman.found(),
+ error_message: 'cannot enable VNC if pixman is not
available') \
+ .allowed()
vnc = declare_dependency() # dummy dependency
jpeg = dependency('libjpeg', required: get_option('vnc_jpeg'),
method: 'pkg-config')
diff --git a/ui/meson.build b/ui/meson.build
index 7c99613950..19723188b5 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -46,7 +46,7 @@ vnc_ss.add(files(
))
vnc_ss.add(zlib, jpeg, gnutls)
vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c'))
-system_ss.add_all(when: vnc, if_true: vnc_ss)
+system_ss.add_all(when: [vnc, pixman], if_true: vnc_ss)
system_ss.add(when: vnc, if_false: files('vnc-stubs.c'))
ui_modules = {}
--
2.41.0
- Re: [PATCH v6 14/23] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, (continued)
- [PATCH v6 13/23] ui/console: when PIXMAN is unavailable, don't draw placeholder msg, marcandre . lureau, 2023/10/25
- [PATCH v6 16/23] ui/vnc: VNC requires PIXMAN,
marcandre . lureau <=
- [PATCH v6 17/23] ui/spice: SPICE/QXL requires PIXMAN, marcandre . lureau, 2023/10/25
- [PATCH v6 18/23] ui/gtk: -display gtk requires PIXMAN, marcandre . lureau, 2023/10/25
- [PATCH v6 19/23] ui/dbus: do not require PIXMAN, marcandre . lureau, 2023/10/25
- [PATCH v6 21/23] hw/sm501: allow compiling without PIXMAN, marcandre . lureau, 2023/10/25
- [PATCH v6 20/23] arm/kconfig: XLNX_ZYNQMP_ARM depends on PIXMAN, marcandre . lureau, 2023/10/25
- [PATCH v6 22/23] hw/display: make ATI_VGA depend on PIXMAN, marcandre . lureau, 2023/10/25