[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 031/143] contrib/ivshmem: convert to meson
From: |
Paolo Bonzini |
Subject: |
[PATCH 031/143] contrib/ivshmem: convert to meson |
Date: |
Thu, 6 Aug 2020 21:14:27 +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 | 3 +++
contrib/ivshmem-server/Makefile.objs | 1 -
contrib/ivshmem-server/meson.build | 3 +++
meson.build | 6 ++++++
8 files changed, 12 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 128bebe..e3d54c0 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 bb44d39..473173d 100755
--- a/configure
+++ b/configure
@@ -6647,9 +6647,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..92ad844
--- /dev/null
+++ b/contrib/ivshmem-client/meson.build
@@ -0,0 +1,3 @@
+executable('ivshmem-client', files('ivshmem-client.c', 'main.c'),
+ dependencies: glib,
+ install: true)
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..6dbe240
--- /dev/null
+++ b/contrib/ivshmem-server/meson.build
@@ -0,0 +1,3 @@
+executable('ivshmem-server', files('ivshmem-server.c', 'main.c'),
+ dependencies: [qemuutil, rt],
+ install: true)
diff --git a/meson.build b/meson.build
index 894584a..aa6fffa 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(),
@@ -263,6 +264,11 @@ 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 024/143] contrib/libvhost-user: convert to Meson, (continued)
- [PATCH 024/143] contrib/libvhost-user: convert to Meson, Paolo Bonzini, 2020/08/06
- [PATCH 025/143] tools/virtiofsd: convert to Meson, Paolo Bonzini, 2020/08/06
- [PATCH 023/143] meson: add version.o, Paolo Bonzini, 2020/08/06
- [PATCH 028/143] contrib/rdmacm-mux: convert to Meson, Paolo Bonzini, 2020/08/06
- [PATCH 027/143] contrib/vhost-user-scsi: convert to Meson, Paolo Bonzini, 2020/08/06
- [PATCH 026/143] contrib/vhost-user-blk: convert to Meson, Paolo Bonzini, 2020/08/06
- [PATCH 029/143] contrib/vhost-user-input: convert to meson, Paolo Bonzini, 2020/08/06
- [PATCH 032/143] contrib/elf2dmp: convert to meson, Paolo Bonzini, 2020/08/06
- [PATCH 030/143] contrib/vhost-user-gpu: convert to meson, Paolo Bonzini, 2020/08/06
- [PATCH 034/143] meson: convert vss-win32, Paolo Bonzini, 2020/08/06
- [PATCH 031/143] contrib/ivshmem: convert to meson,
Paolo Bonzini <=
- [PATCH 033/143] meson: convert qemu-ga, Paolo Bonzini, 2020/08/06
- [PATCH 035/143] meson: add msi generation, Paolo Bonzini, 2020/08/06
- [PATCH 036/143] meson: convert dummy Windows qga/qemu-ga target, Paolo Bonzini, 2020/08/06
- [PATCH 037/143] meson: add qemu-bridge-helper, Paolo Bonzini, 2020/08/06
- [PATCH 038/143] meson: add qemu-keymap, Paolo Bonzini, 2020/08/06
- [PATCH 039/143] meson: add qemu-edid, Paolo Bonzini, 2020/08/06