Merge tag 'hw-misc-20240716' of https://github.com/philmd/qemu into staging
[qemu/armbru.git] / backends / meson.build
blob749b491f127b52679927c13fd8ce139b4e143966
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 if host_os != 'windows'
14   system_ss.add(files('rng-random.c'))
15   system_ss.add(files('hostmem-file.c'))
16   system_ss.add([files('hostmem-shm.c'), rt])
17 endif
18 if host_os == 'linux'
19   system_ss.add(files('hostmem-memfd.c'))
20   system_ss.add(files('host_iommu_device.c'))
21 endif
22 if keyutils.found()
23     system_ss.add(keyutils, files('cryptodev-lkcf.c'))
24 endif
25 if have_vhost_user
26   system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c'))
27 endif
28 system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c'))
29 system_ss.add(when: 'CONFIG_IOMMUFD', if_true: files('iommufd.c'))
30 if have_vhost_user_crypto
31   system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c'))
32 endif
33 system_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
34 system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
36 subdir('tpm')