meson.build 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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])
  12. if host_os != 'windows'
  13. system_ss.add(files('rng-random.c'))
  14. system_ss.add(files('hostmem-file.c'))
  15. system_ss.add([files('hostmem-shm.c'), rt])
  16. endif
  17. if host_os == 'linux'
  18. system_ss.add(files('hostmem-memfd.c'))
  19. system_ss.add(files('host_iommu_device.c'))
  20. endif
  21. if keyutils.found()
  22. system_ss.add(keyutils, files('cryptodev-lkcf.c'))
  23. endif
  24. if have_vhost_user
  25. system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c'))
  26. endif
  27. system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c'))
  28. system_ss.add(when: 'CONFIG_IOMMUFD', if_true: files('iommufd.c'))
  29. if have_vhost_user_crypto
  30. system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c'))
  31. endif
  32. system_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
  33. system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
  34. system_ss.add(when: 'CONFIG_SPDM_SOCKET', if_true: files('spdm-socket.c'))
  35. subdir('tpm')