meson: move accelerator dependency checks together
[qemu/ar7.git] / backends / meson.build
blob9a5cea480d172d50a641e4d9179093e8155f2db1
1 system_ss.add([files(
2   'cryptodev-builtin.c',
3   'cryptodev-hmp-cmds.c',
4   'cryptodev.c',
5   'hostmem-ram.c',
6   'hostmem.c',
7   'rng-builtin.c',
8   'rng-egd.c',
9   'rng.c',
10   'confidential-guest-support.c',
11 ), numa])
13 system_ss.add(when: 'CONFIG_POSIX', if_true: files('rng-random.c'))
14 system_ss.add(when: 'CONFIG_POSIX', if_true: files('hostmem-file.c'))
15 system_ss.add(when: 'CONFIG_LINUX', if_true: files('hostmem-memfd.c'))
16 if keyutils.found()
17     system_ss.add(keyutils, files('cryptodev-lkcf.c'))
18 endif
19 if have_vhost_user
20   system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c'))
21 endif
22 system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c'))
23 system_ss.add(when: 'CONFIG_IOMMUFD', if_true: files('iommufd.c'))
24 if have_vhost_user_crypto
25   system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c'))
26 endif
27 system_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
28 system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
30 subdir('tpm')