meson.build 1000 B

1234567891011121314151617181920212223242526272829303132
  1. vfio_ss = ss.source_set()
  2. vfio_ss.add(files(
  3. 'common.c',
  4. 'container.c',
  5. ))
  6. vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
  7. vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
  8. 'pci-quirks.c',
  9. 'pci.c',
  10. ))
  11. vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
  12. vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
  13. vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
  14. vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
  15. specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)
  16. system_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
  17. system_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
  18. system_ss.add(when: 'CONFIG_VFIO', if_true: files(
  19. 'helpers.c',
  20. 'container-base.c',
  21. 'migration.c',
  22. 'migration-multifd.c',
  23. 'cpr.c',
  24. ))
  25. system_ss.add(when: ['CONFIG_VFIO', 'CONFIG_IOMMUFD'], if_true: files(
  26. 'iommufd.c',
  27. ))
  28. system_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
  29. 'display.c',
  30. ))