contrib/vhost-user-scsi: convert to Meson

The libiscsi pkg-config information is extracted from config-host.mak and
used to link vhost-user-blk.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2019-06-10 12:21:14 +02:00
parent 7af0dbf990
commit 99650b628f
5 changed files with 13 additions and 7 deletions

View file

@ -1 +0,0 @@
vhost-user-scsi-obj-y = vhost-user-scsi.o

View file

@ -0,0 +1,7 @@
if 'CONFIG_LIBISCSI' in config_host
executable('vhost-user-scsi', files('vhost-user-scsi.c'),
link_with: libvhost_user,
dependencies: [qemuutil, libiscsi],
build_by_default: targetos == 'linux',
install: false)
endif