build-sys: disable vhost-user-gpu if !opengl
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 28 Jun 2022 13:23:15 +0000 (17:23 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 18 Aug 2022 06:46:55 +0000 (10:46 +0400)
vhost-user-gpu uses epoxy/glflush and thus requires opengl.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220628132315.664026-1-marcandre.lureau@redhat.com>

meson.build

index 30a380752c0d479e45546d39521983f18ef10c6f..20fddbd707c91c1baee604202fb1a8bed22b9bb5 100644 (file)
@@ -1097,7 +1097,7 @@ if (have_system or have_tools) and (virgl.found() or opengl.found())
   gbm = dependency('gbm', method: 'pkg-config', required: false,
                    kwargs: static_kwargs)
 endif
-have_vhost_user_gpu = have_vhost_user_gpu and virgl.found() and gbm.found()
+have_vhost_user_gpu = have_vhost_user_gpu and virgl.found() and opengl.found() and gbm.found()
 
 gnutls = not_found
 gnutls_crypto = not_found