xref: /qemu/backends/meson.build (revision 53e8868d)
1system_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])
12
13system_ss.add(when: 'CONFIG_POSIX', if_true: files('rng-random.c'))
14system_ss.add(when: 'CONFIG_POSIX', if_true: files('hostmem-file.c'))
15if targetos == 'linux'
16  system_ss.add(files('hostmem-memfd.c'))
17endif
18if keyutils.found()
19    system_ss.add(keyutils, files('cryptodev-lkcf.c'))
20endif
21if have_vhost_user
22  system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c'))
23endif
24system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c'))
25system_ss.add(when: 'CONFIG_IOMMUFD', if_true: files('iommufd.c'))
26if have_vhost_user_crypto
27  system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c'))
28endif
29system_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
30system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
31
32subdir('tpm')
33