[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 062/147] meson: qemu-{img,io,nbd}
From: |
Paolo Bonzini |
Subject: |
[PATCH 062/147] meson: qemu-{img,io,nbd} |
Date: |
Mon, 10 Aug 2020 19:07:40 +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 | 5 -----
configure | 3 +--
meson.build | 14 ++++++++++++--
3 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index f251703..c269823 100644
--- a/Makefile
+++ b/Makefile
@@ -273,11 +273,6 @@ Makefile: $(version-obj-y)
COMMON_LDADDS = libqemuutil.a
-qemu-img.o: qemu-img-cmds.h
-
-qemu-img$(EXESUF): qemu-img.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y)
$(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS)
-qemu-nbd$(EXESUF): qemu-nbd.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y)
$(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS)
-qemu-io$(EXESUF): qemu-io.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y)
$(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS)
qemu-storage-daemon$(EXESUF): qemu-storage-daemon.o $(authz-obj-y)
$(block-obj-y) $(crypto-obj-y) $(chardev-obj-y) $(io-obj-y) $(qom-obj-y)
$(storage-daemon-obj-y) $(COMMON_LDADDS)
scsi/qemu-pr-helper$(EXESUF): scsi/qemu-pr-helper.o scsi/utils.o
$(authz-obj-y) $(crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS)
diff --git a/configure b/configure
index 200c5f7..a8ad31c 100755
--- a/configure
+++ b/configure
@@ -6647,9 +6647,8 @@ fi
tools=""
helpers=""
if test "$want_tools" = "yes" ; then
- tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
- tools="qemu-nbd\$(EXESUF) qemu-storage-daemon\$(EXESUF) $tools"
+ tools="qemu-storage-daemon\$(EXESUF) $tools"
fi
fi
if test "$softmmu" = yes ; then
diff --git a/meson.build b/meson.build
index 62ceb46..ad38f29 100644
--- a/meson.build
+++ b/meson.build
@@ -338,7 +338,7 @@ if have_system
]
endif
foreach d : hx_headers
- custom_target(d[1],
+ hxdep += custom_target(d[1],
input: files(d[0]),
output: d[1],
capture: true,
@@ -547,7 +547,8 @@ libblock = static_library('block', block_ss.sources(),
build_by_default: false)
block = declare_dependency(link_whole: [libblock],
- link_args: '@block.syms')
+ link_args: '@block.syms',
+ dependencies: [crypto, io])
foreach m : mods
shared_module(m['dir'] + '-' + m['name'],
@@ -625,6 +626,15 @@ if 'CONFIG_GUEST_AGENT' in config_host
endif
if have_tools
+ qemu_img = executable('qemu-img', [files('qemu-img.c'), hxdep],
+ dependencies: [authz, block, crypto, io, qom, qemuutil], install:
true)
+ qemu_io = executable('qemu-io', files('qemu-io.c'),
+ dependencies: [block, qemuutil], install: true)
+ if host_machine.system() == 'linux' or host_machine.system() == 'sunos' or
host_machine.system().endswith('bsd')
+ qemu_nbd = executable('qemu-nbd', files('qemu-nbd.c'),
+ dependencies: [block, qemuutil], install: true)
+ endif
+
subdir('contrib/rdmacm-mux')
subdir('contrib/elf2dmp')
--
1.8.3.1
- [PATCH 056/147] meson: convert target/s390x/gen-features.h, (continued)
- [PATCH 056/147] meson: convert target/s390x/gen-features.h, Paolo Bonzini, 2020/08/10
- [PATCH 058/147] meson: add macos dependencies, Paolo Bonzini, 2020/08/10
- [PATCH 059/147] meson: add modules infrastructure, Paolo Bonzini, 2020/08/10
- [PATCH 060/147] meson: convert chardev directory to Meson (tools part), Paolo Bonzini, 2020/08/10
- [PATCH 061/147] meson: convert block, Paolo Bonzini, 2020/08/10
- [PATCH 063/147] meson: qemu-pr-helper, Paolo Bonzini, 2020/08/10
- [PATCH 064/147] configure, Makefile; remove TOOLS and HELPERS-y variable, Paolo Bonzini, 2020/08/10
- [PATCH 065/147] meson: convert chardev directory to Meson (emulator part), Paolo Bonzini, 2020/08/10
- [PATCH 066/147] meson: convert tests/qtest to meson, Paolo Bonzini, 2020/08/10
- [PATCH 062/147] meson: qemu-{img,io,nbd},
Paolo Bonzini <=
- [PATCH 069/147] meson: convert root directory to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 070/147] meson: convert most of softmmu/, Paolo Bonzini, 2020/08/10
- [PATCH 071/147] meson: convert trace/, Paolo Bonzini, 2020/08/10
- [PATCH 067/147] meson: convert audio directory to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 057/147] meson: infrastructure for building emulators, Paolo Bonzini, 2020/08/10
- [PATCH 072/147] meson: convert dump/, Paolo Bonzini, 2020/08/10
- [PATCH 068/147] meson: convert ui directory to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 073/147] meson: convert common QMP bits for qemu and qemu-storage-daemon, Paolo Bonzini, 2020/08/10
- [PATCH 074/147] meson: convert qemu-storage-daemon, Paolo Bonzini, 2020/08/10
- [PATCH 075/147] meson: convert replay directory to Meson, Paolo Bonzini, 2020/08/10