xref: /openbmc/qemu/hw/i386/kvm/meson.build (revision a28b0fc0345b1ddc12109de807e6d4ce566c1914)
1i386_kvm_ss = ss.source_set()
2i386_kvm_ss.add(files('clock.c'))
3i386_kvm_ss.add(when: 'CONFIG_APIC', if_true: files('apic.c'))
4i386_kvm_ss.add(when: 'CONFIG_I8254', if_true: files('i8254.c'))
5i386_kvm_ss.add(when: 'CONFIG_I8259', if_true: files('i8259.c'))
6i386_kvm_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
7i386_kvm_ss.add(when: 'CONFIG_XEN_EMU', if_true: files(
8  'xen_overlay.c',
9  'xen_evtchn.c',
10  'xen_gnttab.c',
11  ))
12
13i386_ss.add_all(when: 'CONFIG_KVM', if_true: i386_kvm_ss)
14
15xen_stubs_ss = ss.source_set()
16xen_stubs_ss.add(when: 'CONFIG_XEN_EMU', if_false: files(
17  'xen-stubs.c',
18))
19
20specific_ss.add_all(when: 'CONFIG_SOFTMMU', if_true: xen_stubs_ss)
21