[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 055/147] meson: convert io directory to Meson
From: |
Paolo Bonzini |
Subject: |
[PATCH 055/147] meson: convert io directory to Meson |
Date: |
Mon, 10 Aug 2020 19:07:33 +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 | 1 -
Makefile.objs | 2 +-
Makefile.target | 2 +-
io/Makefile.objs | 12 ------------
io/meson.build | 25 +++++++++++++++++++++++++
meson.build | 1 +
6 files changed, 28 insertions(+), 15 deletions(-)
delete mode 100644 io/Makefile.objs
create mode 100644 io/meson.build
diff --git a/Makefile b/Makefile
index d26ad4c..8fe446b 100644
--- a/Makefile
+++ b/Makefile
@@ -230,7 +230,6 @@ dummy := $(call unnest-vars,, \
block-obj-m \
storage-daemon-obj-y \
storage-daemon-obj-m \
- io-obj-y \
common-obj-y \
common-obj-m)
diff --git a/Makefile.objs b/Makefile.objs
index 018338d..0920cdb 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -21,7 +21,7 @@ block-obj-m = block/
crypto-obj-y = crypto/libcrypto.fa
-io-obj-y = io/
+io-obj-y = io/libio.fa
endif # CONFIG_SOFTMMU or CONFIG_TOOLS
diff --git a/Makefile.target b/Makefile.target
index b213955..f6b7a86 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -194,12 +194,12 @@ include $(SRC_PATH)/Makefile.objs
dummy := $(call fix-paths,../,, \
authz-obj-y \
crypto-obj-y \
+ io-obj-y \
qom-obj-y)
dummy := $(call unnest-vars,.., \
block-obj-y \
block-obj-m \
chardev-obj-y \
- io-obj-y \
common-obj-y \
common-obj-m)
all-obj-y += $(common-obj-y)
diff --git a/io/Makefile.objs b/io/Makefile.objs
deleted file mode 100644
index 9a20fce..0000000
--- a/io/Makefile.objs
+++ /dev/null
@@ -1,12 +0,0 @@
-io-obj-y = channel.o
-io-obj-y += channel-buffer.o
-io-obj-y += channel-command.o
-io-obj-y += channel-file.o
-io-obj-y += channel-socket.o
-io-obj-y += channel-tls.o
-io-obj-y += channel-watch.o
-io-obj-y += channel-websock.o
-io-obj-y += channel-util.o
-io-obj-y += dns-resolver.o
-io-obj-y += net-listener.o
-io-obj-y += task.o
diff --git a/io/meson.build b/io/meson.build
new file mode 100644
index 0000000..062e011
--- /dev/null
+++ b/io/meson.build
@@ -0,0 +1,25 @@
+io_ss = ss.source_set()
+io_ss.add(genh)
+io_ss.add(files(
+ 'channel-buffer.c',
+ 'channel-command.c',
+ 'channel-file.c',
+ 'channel-socket.c',
+ 'channel-tls.c',
+ 'channel-util.c',
+ 'channel-watch.c',
+ 'channel-websock.c',
+ 'channel.c',
+ 'dns-resolver.c',
+ 'net-listener.c',
+ 'task.c',
+))
+
+io_ss = io_ss.apply(config_host, strict: false)
+libio = static_library('io', io_ss.sources(),
+ dependencies: [io_ss.dependencies()],
+ link_with: libqemuutil,
+ name_suffix: 'fa',
+ build_by_default: false)
+
+io = declare_dependency(link_whole: libio, dependencies: [crypto, qom])
diff --git a/meson.build b/meson.build
index 8d46944..5c4bf16 100644
--- a/meson.build
+++ b/meson.build
@@ -325,6 +325,7 @@ libqemuutil = static_library('qemuutil',
qemuutil = declare_dependency(link_with: libqemuutil,
sources: genh + version_res)
+subdir('io')
subdir('fsdev')
# Other build targets
--
1.8.3.1
- [PATCH 044/147] meson: keymap-gen, (continued)
- [PATCH 044/147] meson: keymap-gen, Paolo Bonzini, 2020/08/10
- [PATCH 045/147] meson: generate qemu-version.h, Paolo Bonzini, 2020/08/10
- [PATCH 047/147] meson: generate hxtool files, Paolo Bonzini, 2020/08/10
- [PATCH 046/147] meson: generate shader headers, Paolo Bonzini, 2020/08/10
- [PATCH 048/147] meson: handle edk2 bios and descriptors, Paolo Bonzini, 2020/08/10
- [PATCH 049/147] meson: convert check-decodetree, Paolo Bonzini, 2020/08/10
- [PATCH 050/147] meson: convert tests/fp and check-softfloat, Paolo Bonzini, 2020/08/10
- [PATCH 051/147] meson: convert check-qapi-schema, Paolo Bonzini, 2020/08/10
- [PATCH 052/147] meson: convert qom directory to Meson (tools part), Paolo Bonzini, 2020/08/10
- [PATCH 054/147] meson: convert crypto directory to Meson, Paolo Bonzini, 2020/08/10
- [PATCH 055/147] meson: convert io directory to Meson,
Paolo Bonzini <=
- [PATCH 053/147] meson: convert authz directory to Meson, Paolo Bonzini, 2020/08/10
- [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