mirror of https://github.com/xemu-project/xemu.git
meson: convert backends directory to Meson
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cdaf07228c
commit
ab3180515c
|
@ -66,8 +66,6 @@ common-obj-$(if $(and $(CONFIG_BZIP2),$(CONFIG_DMG)),m) += block-dmg-bz2$(DSOSUF
|
||||||
common-obj-y += hw/
|
common-obj-y += hw/
|
||||||
common-obj-m += hw/
|
common-obj-m += hw/
|
||||||
|
|
||||||
common-obj-y += backends/
|
|
||||||
|
|
||||||
common-obj-y += qapi/
|
common-obj-y += qapi/
|
||||||
|
|
||||||
common-obj-y += libqmp.fa
|
common-obj-y += libqmp.fa
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
common-obj-y += rng.o rng-egd.o rng-builtin.o
|
|
||||||
common-obj-$(CONFIG_POSIX) += rng-random.o
|
|
||||||
|
|
||||||
common-obj-$(CONFIG_TPM) += tpm/
|
|
||||||
|
|
||||||
common-obj-y += hostmem.o hostmem-ram.o
|
|
||||||
common-obj-$(CONFIG_POSIX) += hostmem-file.o
|
|
||||||
|
|
||||||
common-obj-y += cryptodev.o
|
|
||||||
common-obj-y += cryptodev-builtin.o
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_VIRTIO_CRYPTO),y)
|
|
||||||
common-obj-y += cryptodev-vhost.o
|
|
||||||
common-obj-$(CONFIG_VHOST_CRYPTO) += cryptodev-vhost-user.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
common-obj-$(call land,$(CONFIG_VHOST_USER),$(CONFIG_VIRTIO)) += vhost-user.o
|
|
||||||
|
|
||||||
common-obj-$(CONFIG_LINUX) += hostmem-memfd.o
|
|
||||||
|
|
||||||
common-obj-$(CONFIG_GIO) += dbus-vmstate.o
|
|
||||||
dbus-vmstate.o-cflags = $(GIO_CFLAGS)
|
|
||||||
dbus-vmstate.o-libs = $(GIO_LIBS)
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
softmmu_ss.add([files(
|
||||||
|
'cryptodev-builtin.c',
|
||||||
|
'cryptodev.c',
|
||||||
|
'hostmem-ram.c',
|
||||||
|
'hostmem.c',
|
||||||
|
'rng-builtin.c',
|
||||||
|
'rng-egd.c',
|
||||||
|
'rng.c',
|
||||||
|
), numa])
|
||||||
|
|
||||||
|
softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files('rng-random.c'))
|
||||||
|
softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files('hostmem-file.c'))
|
||||||
|
softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('hostmem-memfd.c'))
|
||||||
|
softmmu_ss.add(when: ['CONFIG_VHOST_USER', 'CONFIG_VIRTIO'], if_true: files('vhost-user.c'))
|
||||||
|
softmmu_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c'))
|
||||||
|
softmmu_ss.add(when: ['CONFIG_VIRTIO_CRYPTO', 'CONFIG_VHOST_CRYPTO'], if_true: files('cryptodev-vhost-user.c'))
|
||||||
|
softmmu_ss.add(when: 'CONFIG_GIO', if_true: [files('dbus-vmstate.c'), gio])
|
||||||
|
|
||||||
|
subdir('tpm')
|
|
@ -1,4 +0,0 @@
|
||||||
common-obj-y += tpm_backend.o
|
|
||||||
common-obj-y += tpm_util.o
|
|
||||||
common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o
|
|
||||||
common-obj-$(CONFIG_TPM_EMULATOR) += tpm_emulator.o
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
tpm_ss = ss.source_set()
|
||||||
|
|
||||||
|
tpm_ss.add(files('tpm_backend.c'))
|
||||||
|
tpm_ss.add(files('tpm_util.c'))
|
||||||
|
tpm_ss.add(when: 'CONFIG_TPM_PASSTHROUGH', if_true: files('tpm_passthrough.c'))
|
||||||
|
tpm_ss.add(when: 'CONFIG_TPM_EMULATOR', if_true: files('tpm_emulator.c'))
|
||||||
|
|
||||||
|
softmmu_ss.add_all(when: 'CONFIG_TPM', if_true: tpm_ss)
|
|
@ -4741,6 +4741,7 @@ EOF
|
||||||
if compile_prog "" "-lnuma" ; then
|
if compile_prog "" "-lnuma" ; then
|
||||||
numa=yes
|
numa=yes
|
||||||
libs_softmmu="-lnuma $libs_softmmu"
|
libs_softmmu="-lnuma $libs_softmmu"
|
||||||
|
numa_libs="-lnuma"
|
||||||
else
|
else
|
||||||
if test "$numa" = "yes" ; then
|
if test "$numa" = "yes" ; then
|
||||||
feature_not_found "numa" "install numactl devel"
|
feature_not_found "numa" "install numactl devel"
|
||||||
|
@ -8367,6 +8368,7 @@ fi
|
||||||
|
|
||||||
if test "$numa" = "yes"; then
|
if test "$numa" = "yes"; then
|
||||||
echo "CONFIG_NUMA=y" >> $config_host_mak
|
echo "CONFIG_NUMA=y" >> $config_host_mak
|
||||||
|
echo "NUMA_LIBS=$numa_libs" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ccache_cpp2" = "yes"; then
|
if test "$ccache_cpp2" = "yes"; then
|
||||||
|
|
|
@ -321,6 +321,10 @@ rdma = not_found
|
||||||
if 'CONFIG_RDMA' in config_host
|
if 'CONFIG_RDMA' in config_host
|
||||||
rdma = declare_dependency(link_args: config_host['RDMA_LIBS'].split())
|
rdma = declare_dependency(link_args: config_host['RDMA_LIBS'].split())
|
||||||
endif
|
endif
|
||||||
|
numa = not_found
|
||||||
|
if 'CONFIG_NUMA' in config_host
|
||||||
|
numa = declare_dependency(link_args: config_host['NUMA_LIBS'].split())
|
||||||
|
endif
|
||||||
|
|
||||||
create_config = find_program('scripts/create_config')
|
create_config = find_program('scripts/create_config')
|
||||||
minikconf = find_program('scripts/minikconf.py')
|
minikconf = find_program('scripts/minikconf.py')
|
||||||
|
@ -668,6 +672,7 @@ softmmu_ss.add(when: ['CONFIG_FDT', fdt], if_true: [files('device_tree.c')])
|
||||||
common_ss.add(files('cpus-common.c'))
|
common_ss.add(files('cpus-common.c'))
|
||||||
|
|
||||||
subdir('softmmu')
|
subdir('softmmu')
|
||||||
|
subdir('backends')
|
||||||
subdir('migration')
|
subdir('migration')
|
||||||
subdir('monitor')
|
subdir('monitor')
|
||||||
subdir('net')
|
subdir('net')
|
||||||
|
|
Loading…
Reference in New Issue