xref: /qemu/target/i386/meson.build (revision eebba0536a6302f5c55faa5286e5e59cb21036c3)
1i386_ss = ss.source_set()
2i386_ss.add(files(
3  'cpu.c',
4  'gdbstub.c',
5  'helper.c',
6  'xsave_helper.c',
7  'cpu-dump.c',
8))
9i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c', 'confidential-guest.c'))
10
11# x86 cpu type
12i386_ss.add(when: 'CONFIG_KVM', if_true: files('host-cpu.c'))
13i386_ss.add(when: 'CONFIG_HVF', if_true: files('host-cpu.c'))
14
15i386_system_ss = ss.source_set()
16i386_system_ss.add(files(
17  'arch_dump.c',
18  'arch_memory_mapping.c',
19  'machine.c',
20  'monitor.c',
21  'cpu-apic.c',
22  'cpu-system.c',
23))
24i386_system_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'),
25                                       if_false: files('sev-system-stub.c'))
26
27i386_user_ss = ss.source_set()
28
29subdir('kvm')
30subdir('whpx')
31subdir('nvmm')
32subdir('hvf')
33subdir('tcg')
34subdir('emulate')
35
36target_arch += {'i386': i386_ss}
37target_system_arch += {'i386': i386_system_ss}
38target_user_arch += {'i386': i386_user_ss}
39