meson.build 752 B

1234567891011121314151617181920212223242526272829303132333435
  1. system_ss.add(when: ['CONFIG_XEN_BUS'], if_true: files(
  2. 'xen-backend.c',
  3. 'xen-bus-helper.c',
  4. 'xen-bus.c',
  5. 'xen-legacy-backend.c',
  6. 'xen_devconfig.c',
  7. 'xen_pvdev.c',
  8. ))
  9. system_ss.add(when: ['CONFIG_XEN', xen], if_true: files(
  10. 'xen-operations.c',
  11. ))
  12. xen_specific_ss = ss.source_set()
  13. if have_xen_pci_passthrough
  14. xen_specific_ss.add(files(
  15. 'xen-host-pci-device.c',
  16. 'xen_pt.c',
  17. 'xen_pt_config_init.c',
  18. 'xen_pt_graphics.c',
  19. 'xen_pt_load_rom.c',
  20. 'xen_pt_msi.c',
  21. ))
  22. else
  23. xen_specific_ss.add(files('xen_pt_stub.c'))
  24. endif
  25. specific_ss.add_all(when: ['CONFIG_XEN', xen], if_true: xen_specific_ss)
  26. xen_ss = ss.source_set()
  27. xen_ss.add(when: 'CONFIG_XEN', if_true: files(
  28. 'xen-mapcache.c',
  29. 'xen-hvm-common.c',
  30. ))