xref: /qemu/hw/vfio/meson.build (revision 5a1f614d0cd0bcc8e84e0b7ab6af63d56bd348a2)
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  'cpr-legacy.c',
25  'device.c',
26  'migration.c',
27  'migration-multifd.c',
28  'region.c',
29))
30system_ss.add(when: ['CONFIG_VFIO', 'CONFIG_IOMMUFD'], if_true: files(
31  'iommufd.c',
32))
33system_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
34  'display.c',
35))
36