meson: convert vhost-user-bridge

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200828110734.1638685-10-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2020-08-28 15:07:27 +04:00 committed by Paolo Bonzini
parent fb5c578697
commit 89d4dc8f8f
2 changed files with 9 additions and 2 deletions

View File

@ -65,8 +65,6 @@ tests/migration/initrd-stress.img: tests/migration/stress$(EXESUF)
rm $(INITRD_WORK_DIR)/init
rmdir $(INITRD_WORK_DIR)
tests/vhost-user-bridge$(EXESUF): tests/vhost-user-bridge.o $(test-util-obj-y) libvhost-user.a
SPEED = quick
# gtester tests, possibly with verbose output

View File

@ -216,6 +216,15 @@ foreach test_name, extra: tests
suite: ['unit'])
endforeach
if have_tools and 'CONFIG_VHOST_USER' in config_host
executable('vhost-user-bridge',
sources: files('vhost-user-bridge.c'),
link_with: [libvhost_user],
dependencies: [qemuutil],
build_by_default: false)
endif
if have_system and 'CONFIG_POSIX' in config_host
subdir('qemu-iotests')
endif