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