xref: /qemu/hw/vfio/meson.build (revision 090c9641882da217e40936c98742749e4cc94130)
14f780d56SMarc-André Lureauvfio_ss = ss.source_set()
24f780d56SMarc-André Lureauvfio_ss.add(files(
3*6b62a90cSCédric Le Goater  'listener.c',
46b7c8129SCédric Le Goater  'container-base.c',
57e63b311SYi Liu  'container.c',
654525613SCédric Le Goater  'helpers.c',
74f780d56SMarc-André Lureau))
810164df6SCédric Le Goatervfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
94f780d56SMarc-André Lureauvfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
104f780d56SMarc-André Lureau  'pci-quirks.c',
114f780d56SMarc-André Lureau  'pci.c',
124f780d56SMarc-André Lureau))
134f780d56SMarc-André Lureauvfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
144f780d56SMarc-André Lureauvfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
154f780d56SMarc-André Lureauvfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
164f780d56SMarc-André Lureauvfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
174f780d56SMarc-André Lureau
184f780d56SMarc-André Lureauspecific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)
195731baeeSPhilippe Mathieu-Daudé
20761d63ccSPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
21761d63ccSPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
225731baeeSPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_VFIO', if_true: files(
238140d45bSCédric Le Goater  'cpr.c',
2468c07d76SCédric Le Goater  'device.c',
255731baeeSPhilippe Mathieu-Daudé  'migration.c',
265731baeeSPhilippe Mathieu-Daudé  'migration-multifd.c',
27499e53ccSCédric Le Goater  'region.c',
285731baeeSPhilippe Mathieu-Daudé))
29d5c0be1aSPhilippe Mathieu-Daudésystem_ss.add(when: ['CONFIG_VFIO', 'CONFIG_IOMMUFD'], if_true: files(
30d5c0be1aSPhilippe Mathieu-Daudé  'iommufd.c',
31d5c0be1aSPhilippe Mathieu-Daudé))
3228ea52ddSPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
3328ea52ddSPhilippe Mathieu-Daudé  'display.c',
3428ea52ddSPhilippe Mathieu-Daudé))
35