meson: convert hw/xen

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-08-15 15:15:32 +04:00 committed by Paolo Bonzini
parent 5242523b5f
commit 582ea95f5f
6 changed files with 32 additions and 10 deletions

View file

@ -1,7 +0,0 @@
# xen backend driver support
common-obj-y += xen-legacy-backend.o xen_devconfig.o xen_pvdev.o xen-bus.o xen-bus-helper.o xen-backend.o
obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o
obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_graphics.o xen_pt_msi.o
obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt_load_rom.o
obj-$(call lnot,$(CONFIG_XEN_PCI_PASSTHROUGH)) += xen_pt_stub.o

20
hw/xen/meson.build Normal file
View file

@ -0,0 +1,20 @@
softmmu_ss.add(when: ['CONFIG_XEN', xen], if_true: files(
'xen-backend.c',
'xen-bus-helper.c',
'xen-bus.c',
'xen-legacy-backend.c',
'xen_devconfig.c',
'xen_pvdev.c',
))
xen_specific_ss = ss.source_set()
xen_specific_ss.add(when: 'CONFIG_XEN_PCI_PASSTHROUGH', if_true: files(
'xen-host-pci-device.c',
'xen_pt.c',
'xen_pt_config_init.c',
'xen_pt_graphics.c',
'xen_pt_load_rom.c',
'xen_pt_msi.c',
), if_false: files('xen_pt_stub.c'))
specific_ss.add_all(when: ['CONFIG_XEN', xen], if_true: xen_specific_ss)