mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
meson: target
Similar to hw_arch, each architecture defines two sourceset which are placed in dictionaries target_arch and target_softmmu_arch. These are then picked up from there when building the per-emulator static_library. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2c44220d05
commit
abff1abfe8
62 changed files with 595 additions and 328 deletions
40
target/i386/meson.build
Normal file
40
target/i386/meson.build
Normal file
|
@ -0,0 +1,40 @@
|
|||
i386_ss = ss.source_set()
|
||||
i386_ss.add(files(
|
||||
'cpu.c',
|
||||
'gdbstub.c',
|
||||
'helper.c',
|
||||
'xsave_helper.c',
|
||||
))
|
||||
i386_ss.add(when: 'CONFIG_TCG', if_true: files(
|
||||
'bpt_helper.c',
|
||||
'cc_helper.c',
|
||||
'excp_helper.c',
|
||||
'fpu_helper.c',
|
||||
'int_helper.c',
|
||||
'mem_helper.c',
|
||||
'misc_helper.c',
|
||||
'mpx_helper.c',
|
||||
'seg_helper.c',
|
||||
'smm_helper.c',
|
||||
'svm_helper.c',
|
||||
'translate.c'), if_false: files('tcg-stub.c'))
|
||||
i386_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c'))
|
||||
i386_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'), if_false: files('sev-stub.c'))
|
||||
|
||||
i386_softmmu_ss = ss.source_set()
|
||||
i386_softmmu_ss.add(files(
|
||||
'arch_dump.c',
|
||||
'arch_memory_mapping.c',
|
||||
'machine.c',
|
||||
'monitor.c',
|
||||
))
|
||||
i386_softmmu_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c'), if_false: files('hyperv-stub.c'))
|
||||
i386_softmmu_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
||||
i386_softmmu_ss.add(when: 'CONFIG_WHPX', if_true: files('whpx-all.c'))
|
||||
i386_softmmu_ss.add(when: ['CONFIG_POSIX', 'CONFIG_HAX'], if_true: files('hax-all.c', 'hax-mem.c', 'hax-posix.c'))
|
||||
i386_softmmu_ss.add(when: ['CONFIG_WIN32', 'CONFIG_HAX'], if_true: files('hax-all.c', 'hax-mem.c', 'hax-windows.c'))
|
||||
|
||||
subdir('hvf')
|
||||
|
||||
target_arch += {'i386': i386_ss}
|
||||
target_softmmu_arch += {'i386': i386_softmmu_ss}
|
Loading…
Add table
Add a link
Reference in a new issue