From: Marc-André Lureau Date: Wed, 30 Aug 2023 09:38:36 +0000 (+0400) Subject: ui/gtk: -display gtk requires PIXMAN X-Git-Tag: v8.2.0-rc0~20^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da554e1616be52d3e3bbbda6044aff806c355fc0;p=thirdparty%2Fqemu.git ui/gtk: -display gtk requires PIXMAN Signed-off-by: Marc-André Lureau Reviewed-by: Thomas Huth --- diff --git a/meson.build b/meson.build index 0f578ddbf4b..8422e7da0c5 100644 --- a/meson.build +++ b/meson.build @@ -1531,7 +1531,11 @@ gtkx11 = not_found vte = not_found have_gtk_clipboard = get_option('gtk_clipboard').enabled() -if not get_option('gtk').auto() or have_system +if get_option('gtk') \ + .disable_auto_if(not have_system) \ + .require(pixman.found(), + error_message: 'cannot enable GTK if pixman is not available') \ + .allowed() gtk = dependency('gtk+-3.0', version: '>=3.22.0', method: 'pkg-config', required: get_option('gtk'))