diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-20 17:34:06 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-05-07 07:46:58 +0200 |
commit | 43b6d7ee1fbc5b5fb7c85d8131fdac1863214ad6 (patch) | |
tree | 10d919c4e49f279d006691ed7201a8f921082f98 /backends/meson.build | |
parent | 2a3129a37652e5e81d12f6e16dd3c447f09831f9 (diff) | |
download | qemu-43b6d7ee1fbc5b5fb7c85d8131fdac1863214ad6.zip qemu-43b6d7ee1fbc5b5fb7c85d8131fdac1863214ad6.tar.gz qemu-43b6d7ee1fbc5b5fb7c85d8131fdac1863214ad6.tar.bz2 |
meson: use have_vhost_* variables to pick sources
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'backends/meson.build')
-rw-r--r-- | backends/meson.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/meson.build b/backends/meson.build index 535c3ca..b1884a8 100644 --- a/backends/meson.build +++ b/backends/meson.build @@ -12,9 +12,13 @@ softmmu_ss.add([files( softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files('rng-random.c')) softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files('hostmem-file.c')) softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('hostmem-memfd.c')) -softmmu_ss.add(when: ['CONFIG_VHOST_USER', 'CONFIG_VIRTIO'], if_true: files('vhost-user.c')) +if have_vhost_user + softmmu_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c')) +endif softmmu_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c')) -softmmu_ss.add(when: ['CONFIG_VIRTIO_CRYPTO', 'CONFIG_VHOST_CRYPTO'], if_true: files('cryptodev-vhost-user.c')) +if have_vhost_user_crypto + softmmu_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c')) +endif softmmu_ss.add(when: gio, if_true: files('dbus-vmstate.c')) softmmu_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c')) |