util/vhost-user-server: use static library in meson.build
commit3a213f83d99687e6648702421675a922ea71d593
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 24 Sep 2020 15:15:49 +0000 (24 16:15 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 23 Oct 2020 12:42:16 +0000 (23 13:42 +0100)
treec48ebd402076d7389a2b71eb62e2c0e71b64630f
parent80a06cc52bcf7a9771407306991a816834c04941
util/vhost-user-server: use static library in meson.build

Don't compile contrib/libvhost-user/libvhost-user.c again. Instead build
the static library once and then reuse it throughout QEMU.

Also switch from CONFIG_LINUX to CONFIG_VHOST_USER, which is what the
vhost-user tools (vhost-user-gpu, etc) do.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20200924151549.913737-14-stefanha@redhat.com
[Added CONFIG_LINUX again because libvhost-user doesn't build on macOS.
--Stefan]
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/export/export.c
block/export/meson.build
contrib/libvhost-user/meson.build
meson.build
util/meson.build