xref: /qemu/backends/meson.build (revision c5f122fdcc280a82e7c5f31de890f985aa7ba773)
1de6cd759SPhilippe Mathieu-Daudésystem_ss.add([files(
2ab318051SMarc-André Lureau  'cryptodev-builtin.c',
3ef52091aSzhenwei pi  'cryptodev-hmp-cmds.c',
4ab318051SMarc-André Lureau  'cryptodev.c',
5ab318051SMarc-André Lureau  'hostmem-ram.c',
6ab318051SMarc-André Lureau  'hostmem.c',
7ab318051SMarc-André Lureau  'rng-builtin.c',
8ab318051SMarc-André Lureau  'rng-egd.c',
9ab318051SMarc-André Lureau  'rng.c',
10f91f9f25SDavid Gibson  'confidential-guest-support.c',
11ab318051SMarc-André Lureau), numa])
12ab318051SMarc-André Lureau
13d0cda6f4SPaolo Bonziniif host_os != 'windows'
14dc495494SPaolo Bonzini  system_ss.add(files('rng-random.c'))
15*8e72b0ebSKohei Tokunaga  if host_os != 'emscripten'
16dc495494SPaolo Bonzini    system_ss.add(files('hostmem-file.c'))
174e647fa0SStefano Garzarella    system_ss.add([files('hostmem-shm.c'), rt])
18dc495494SPaolo Bonzini  endif
19*8e72b0ebSKohei Tokunagaendif
20d0cda6f4SPaolo Bonziniif host_os == 'linux'
2153e8868dSPaolo Bonzini  system_ss.add(files('hostmem-memfd.c'))
221f94b218SZhenzhong Duan  system_ss.add(files('host_iommu_device.c'))
2353e8868dSPaolo Bonziniendif
2439fff6f3SLei Heif keyutils.found()
25de6cd759SPhilippe Mathieu-Daudé    system_ss.add(keyutils, files('cryptodev-lkcf.c'))
2639fff6f3SLei Heendif
2743b6d7eeSPaolo Bonziniif have_vhost_user
28de6cd759SPhilippe Mathieu-Daudé  system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c'))
2943b6d7eeSPaolo Bonziniendif
30de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c'))
316e6d8ac6SEric Augersystem_ss.add(when: 'CONFIG_IOMMUFD', if_true: files('iommufd.c'))
3243b6d7eeSPaolo Bonziniif have_vhost_user_crypto
33de6cd759SPhilippe Mathieu-Daudé  system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c'))
3443b6d7eeSPaolo Bonziniendif
35de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
36de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
37ab318051SMarc-André Lureau
38bc419a1cSHuai-Cheng Kuosystem_ss.add(when: 'CONFIG_SPDM_SOCKET', if_true: files('spdm-socket.c'))
39bc419a1cSHuai-Cheng Kuo
40ab318051SMarc-André Lureausubdir('tpm')
41