[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 11/18] ui/vnc: VNC requires PIXMAN
From: |
marcandre . lureau |
Subject: |
[PATCH v3 11/18] ui/vnc: VNC requires PIXMAN |
Date: |
Tue, 10 Oct 2023 11:38:23 +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 | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index c30da15ce6..291c2f1301 100644
--- a/meson.build
+++ b/meson.build
@@ -1530,7 +1530,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..b3525ef064 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -46,8 +46,8 @@ 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(when: vnc, if_false: files('vnc-stubs.c'))
+system_ss.add_all(when: [vnc, pixman], if_true: vnc_ss)
+system_ss.add(when: [vnc, pixman], if_false: files('vnc-stubs.c'))
ui_modules = {}
--
2.41.0
- [PATCH v3 01/18] build-sys: add a "pixman" feature, (continued)
- [PATCH v3 01/18] build-sys: add a "pixman" feature, marcandre . lureau, 2023/10/10
- [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 <=
- [PATCH v3 12/18] ui/spice: SPICE/QXL requires PIXMAN, marcandre . lureau, 2023/10/10
- [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