qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] Replacing CONFIG_VNC_PNG with CONFIG_PNG


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 1/2] Replacing CONFIG_VNC_PNG with CONFIG_PNG
Date: Mon, 28 Feb 2022 13:52:35 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1

On 28/2/22 06:22, Kshitij Suri wrote:
Libpng is only detected if VNC is enabled currently. This patch adds a
generalised png option in the meson build which is aimed to replace use of
CONFIG_VNC_PNG with CONFIG_PNG.

Signed-off-by: Kshitij Suri <kshitij.suri@nutanix.com>
---
  meson.build        | 10 +++++-----
  meson_options.txt  |  4 ++--
  ui/vnc-enc-tight.c | 18 +++++++++---------
  ui/vnc.c           |  4 ++--
  ui/vnc.h           |  2 +-
  5 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/meson.build b/meson.build
index 8df40bfac4..3638957fc5 100644
--- a/meson.build
+++ b/meson.build
@@ -1112,14 +1112,14 @@ if gtkx11.found()
    x11 = dependency('x11', method: 'pkg-config', required: gtkx11.found(),
                     kwargs: static_kwargs)
  endif
-vnc = not_found
  png = not_found

^ dead code, otherwise:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

+png = dependency('libpng', required: get_option('png'),
+                 method: 'pkg-config', kwargs: static_kwargs)
+vnc = not_found



reply via email to

[Prev in Thread] Current Thread [Next in Thread]