diff options
author | Thomas Huth <thuth@redhat.com> | 2021-07-13 13:09:02 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2021-09-06 10:00:14 +0200 |
commit | 8bc5184d23c2f95727021844895a24c0579928b2 (patch) | |
tree | 91500cd626cebd5dad33794410917cb1461e0fb4 /contrib/vhost-user-gpu | |
parent | 6c22853c733efd0a3d243bab48f8af66588f4a7a (diff) | |
download | qemu-8bc5184d23c2f95727021844895a24c0579928b2.zip qemu-8bc5184d23c2f95727021844895a24c0579928b2.tar.gz qemu-8bc5184d23c2f95727021844895a24c0579928b2.tar.bz2 |
configure / meson: Move the GBM handling to meson.build
The GBM library detection does not need to be in the configure script,
since it does not have any user-facing options (there are no
--enable-gbm or --disable-gbm switches). Let's move it to meson.build
instead, so we don't have to clutter config-host.mak with the related
switches.
Additionally, only check for GBM if it is really required, i.e. if we
either compile with OpenGL or with virglrenderer support.
Message-Id: <20210714085045.797168-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'contrib/vhost-user-gpu')
-rw-r--r-- | contrib/vhost-user-gpu/meson.build | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/vhost-user-gpu/meson.build b/contrib/vhost-user-gpu/meson.build index 4cb52a9..92c8f3a 100644 --- a/contrib/vhost-user-gpu/meson.build +++ b/contrib/vhost-user-gpu/meson.build @@ -1,6 +1,5 @@ -if 'CONFIG_TOOLS' in config_host and virgl.found() \ - and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \ - and pixman.found() +if 'CONFIG_TOOLS' in config_host and virgl.found() and gbm.found() \ + and 'CONFIG_LINUX' in config_host and pixman.found() executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'), dependencies: [qemuutil, pixman, gbm, virgl, vhost_user, opengl], install: true, |