meson: move pixman detection to meson
commitb7612f45da9ea3ff3488a34f2ffd39d0d94713fb
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Aug 2020 06:22:58 +0000 (26 08:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Aug 2020 16:52:30 +0000 (27 18:52 +0200)
tree6f26a9ca4db19e6342bc62553f1ab33561479b90
parentfb648e9cacf4209ddaa8ee67d1a87a9b78a001c6
meson: move pixman detection to meson

When pixman is not installed (or too old), but virglrenderer is available
and "configure" has been run with "--disable-system", the build currently
aborts when trying to compile vhost-user-gpu (since it requires pixman).

Let's skip the build of vhost-user-gpu when pixman is not installed or
too old.  Instead of adding CONFIG_PIXMAN, it is simpler to move the
detection to pixman.

Based on a patch by Thomas Huth. <thuth@redhat.com>

Fixes: 9b52b17ba5 ("configure: Allow to build tools without pixman")
Reported-by: Rafael Kitover <rkitover@gmail.com>
Reported-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
contrib/vhost-user-gpu/meson.build
meson.build
ui/meson.build