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