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