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