mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
contrib/vhost-user-gpu: convert to meson
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
32fcc6244c
commit
ea458960ec
6 changed files with 29 additions and 35 deletions
|
@ -1,10 +0,0 @@
|
|||
vhost-user-gpu-obj-y = vhost-user-gpu.o virgl.o vugbm.o
|
||||
|
||||
vhost-user-gpu.o-cflags := $(PIXMAN_CFLAGS) $(GBM_CFLAGS)
|
||||
vhost-user-gpu.o-libs := $(PIXMAN_LIBS)
|
||||
|
||||
virgl.o-cflags := $(VIRGL_CFLAGS) $(GBM_CFLAGS)
|
||||
virgl.o-libs := $(VIRGL_LIBS)
|
||||
|
||||
vugbm.o-cflags := $(GBM_CFLAGS)
|
||||
vugbm.o-libs := $(GBM_LIBS)
|
13
contrib/vhost-user-gpu/meson.build
Normal file
13
contrib/vhost-user-gpu/meson.build
Normal file
|
@ -0,0 +1,13 @@
|
|||
if 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
|
||||
and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host
|
||||
executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
|
||||
link_with: libvhost_user,
|
||||
dependencies: [qemuutil, pixman, gbm, virgl],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir'))
|
||||
|
||||
configure_file(input: '50-qemu-gpu.json.in',
|
||||
output: '50-qemu-gpu.json',
|
||||
configuration: config_host,
|
||||
install_dir: config_host['qemu_datadir'] / 'vhost-user')
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue