[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 034/147] contrib/ivshmem: convert to meson
From: |
Paolo Bonzini |
Subject: |
[PATCH 034/147] contrib/ivshmem: convert to meson |
Date: |
Mon, 10 Aug 2020 19:07:12 +0200 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile | 9 ---------
Makefile.objs | 2 --
configure | 3 ---
contrib/ivshmem-client/Makefile.objs | 1 -
contrib/ivshmem-client/meson.build | 4 ++++
contrib/ivshmem-server/Makefile.objs | 1 -
contrib/ivshmem-server/meson.build | 4 ++++
meson.build | 5 +++++
8 files changed, 13 insertions(+), 16 deletions(-)
delete mode 100644 contrib/ivshmem-client/Makefile.objs
create mode 100644 contrib/ivshmem-client/meson.build
delete mode 100644 contrib/ivshmem-server/Makefile.objs
create mode 100644 contrib/ivshmem-server/meson.build
diff --git a/Makefile b/Makefile
index 750598c..58ec90d 100644
--- a/Makefile
+++ b/Makefile
@@ -287,8 +287,6 @@ dummy := $(call unnest-vars,, \
chardev-obj-y \
qga-obj-y \
elf2dmp-obj-y \
- ivshmem-client-obj-y \
- ivshmem-server-obj-y \
qga-vss-dll-obj-y \
block-obj-y \
block-obj-m \
@@ -501,13 +499,6 @@ endif
elf2dmp$(EXESUF): $(elf2dmp-obj-y)
$(call LINK, $^)
-ifdef CONFIG_IVSHMEM
-ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS)
- $(call LINK, $^)
-ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS)
- $(call LINK, $^)
-endif
-
module_block.h: $(SRC_PATH)/scripts/modules/module_block.py config-host.mak
$(call quiet-command,$(PYTHON) $< $@ \
$(addprefix $(SRC_PATH)/,$(patsubst %.mo,%.c,$(block-obj-m))), \
diff --git a/Makefile.objs b/Makefile.objs
index 2f2d4b2..336a684 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -104,7 +104,5 @@ qga-vss-dll-obj-y = qga/
######################################################################
# contrib
elf2dmp-obj-y = contrib/elf2dmp/
-ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
-ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
######################################################################
diff --git a/configure b/configure
index 86a8c8b..6f7a5aa 100755
--- a/configure
+++ b/configure
@@ -6652,9 +6652,6 @@ if test "$want_tools" = "yes" ; then
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
tools="qemu-nbd\$(EXESUF) qemu-storage-daemon\$(EXESUF) $tools"
fi
- if [ "$ivshmem" = "yes" ]; then
- tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
- fi
if [ "$curl" = "yes" ]; then
tools="elf2dmp\$(EXESUF) $tools"
fi
diff --git a/contrib/ivshmem-client/Makefile.objs
b/contrib/ivshmem-client/Makefile.objs
deleted file mode 100644
index bfab2d2..0000000
--- a/contrib/ivshmem-client/Makefile.objs
+++ /dev/null
@@ -1 +0,0 @@
-ivshmem-client-obj-y = ivshmem-client.o main.o
diff --git a/contrib/ivshmem-client/meson.build
b/contrib/ivshmem-client/meson.build
new file mode 100644
index 0000000..1b171ef
--- /dev/null
+++ b/contrib/ivshmem-client/meson.build
@@ -0,0 +1,4 @@
+executable('ivshmem-client', files('ivshmem-client.c', 'main.c'),
+ dependencies: glib,
+ build_by_default: targetos == 'linux',
+ install: false)
diff --git a/contrib/ivshmem-server/Makefile.objs
b/contrib/ivshmem-server/Makefile.objs
deleted file mode 100644
index c060dd3..0000000
--- a/contrib/ivshmem-server/Makefile.objs
+++ /dev/null
@@ -1 +0,0 @@
-ivshmem-server-obj-y = ivshmem-server.o main.o
diff --git a/contrib/ivshmem-server/meson.build
b/contrib/ivshmem-server/meson.build
new file mode 100644
index 0000000..3a53942
--- /dev/null
+++ b/contrib/ivshmem-server/meson.build
@@ -0,0 +1,4 @@
+executable('ivshmem-server', files('ivshmem-server.c', 'main.c'),
+ dependencies: [qemuutil, rt],
+ build_by_default: targetos == 'linux',
+ install: false)
diff --git a/meson.build b/meson.build
index 3483056..dc970df 100644
--- a/meson.build
+++ b/meson.build
@@ -90,6 +90,7 @@ libcap_ng = not_found
if 'CONFIG_LIBCAP_NG' in config_host
libcap_ng = declare_dependency(link_args:
config_host['LIBCAP_NG_LIBS'].split())
endif
+rt = cc.find_library('rt', required: false)
libiscsi = not_found
if 'CONFIG_LIBISCSI' in config_host
libiscsi = declare_dependency(compile_args:
config_host['LIBISCSI_CFLAGS'].split(),
@@ -279,6 +280,10 @@ if have_tools
subdir('contrib/vhost-user-input')
subdir('contrib/vhost-user-scsi')
endif
+ if 'CONFIG_IVSHMEM' in config_host
+ subdir('contrib/ivshmem-client')
+ subdir('contrib/ivshmem-server')
+ endif
endif
subdir('tools')
--
1.8.3.1
- [PATCH 025/147] meson: add remaining generated tcg trace helpers, (continued)
- [PATCH 025/147] meson: add remaining generated tcg trace helpers, Paolo Bonzini, 2020/08/10
- [PATCH 024/147] libqemuutil, qapi, trace: convert to meson, Paolo Bonzini, 2020/08/10
- [PATCH 026/147] meson: add version.o, Paolo Bonzini, 2020/08/10
- [PATCH 027/147] contrib/libvhost-user: convert to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 030/147] contrib/vhost-user-scsi: convert to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 029/147] contrib/vhost-user-blk: convert to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 031/147] contrib/rdmacm-mux: convert to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 028/147] tools/virtiofsd: convert to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 032/147] contrib/vhost-user-input: convert to meson, Paolo Bonzini, 2020/08/10
- [PATCH 033/147] contrib/vhost-user-gpu: convert to meson, Paolo Bonzini, 2020/08/10
- [PATCH 034/147] contrib/ivshmem: convert to meson,
Paolo Bonzini <=
- [PATCH 035/147] contrib/elf2dmp: convert to meson, Paolo Bonzini, 2020/08/10
- [PATCH 037/147] meson: convert vss-win32, Paolo Bonzini, 2020/08/10
- [PATCH 038/147] meson: add msi generation, Paolo Bonzini, 2020/08/10
- [PATCH 036/147] meson: convert qemu-ga, Paolo Bonzini, 2020/08/10
- [PATCH 039/147] meson: convert dummy Windows qga/qemu-ga target, Paolo Bonzini, 2020/08/10
- [PATCH 041/147] meson: add qemu-keymap, Paolo Bonzini, 2020/08/10
- [PATCH 040/147] meson: add qemu-bridge-helper, Paolo Bonzini, 2020/08/10
- [PATCH 042/147] meson: add qemu-edid, Paolo Bonzini, 2020/08/10
- [PATCH 043/147] meson: add virtfs-proxy-helper, Paolo Bonzini, 2020/08/10
- [PATCH 044/147] meson: keymap-gen, Paolo Bonzini, 2020/08/10