meson: convert most of softmmu/

Leave out main.c, it's special due to fuzzing.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2020-08-06 13:40:26 +02:00
parent 4a96337dfa
commit 5d3ea0e17d
3 changed files with 13 additions and 13 deletions

View File

@ -645,6 +645,8 @@ softmmu_ss.add(when: ['CONFIG_FDT', fdt], if_true: [files('device_tree.c')])
common_ss.add(files('cpus-common.c'))
subdir('softmmu')
# needed for fuzzing binaries
subdir('tests/qtest/libqos')

View File

@ -1,14 +1,2 @@
softmmu-main-y = softmmu/main.o
obj-y += arch_init.o
obj-y += cpus.o
obj-y += cpu-throttle.o
obj-y += balloon.o
obj-y += ioport.o
obj-y += memory.o
obj-y += memory_mapping.o
obj-y += qtest.o
obj-y += vl.o
vl.o-cflags := $(SDL_CFLAGS)
main.o-cflags := $(SDL_CFLAGS)

10
softmmu/meson.build Normal file
View File

@ -0,0 +1,10 @@
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files(
'arch_init.c',
'balloon.c',
'cpus.c',
'cpu-throttle.c',
'ioport.c',
'memory.c',
'memory_mapping.c',
'qtest.c',
'vl.c'))