[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 052/147] meson: convert qom directory to Meson (tools part)
From: |
Paolo Bonzini |
Subject: |
[PATCH 052/147] meson: convert qom directory to Meson (tools part) |
Date: |
Mon, 10 Aug 2020 19:07:30 +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 | 2 +-
Makefile.objs | 2 +-
Makefile.target | 3 ++-
meson.build | 1 +
qom/Makefile.objs | 3 ---
qom/meson.build | 15 +++++++++++++++
6 files changed, 20 insertions(+), 6 deletions(-)
create mode 100644 qom/meson.build
diff --git a/Makefile b/Makefile
index 62e0ef0..1be6019 100644
--- a/Makefile
+++ b/Makefile
@@ -232,7 +232,6 @@ dummy := $(call unnest-vars,, \
storage-daemon-obj-y \
storage-daemon-obj-m \
crypto-obj-y \
- qom-obj-y \
io-obj-y \
common-obj-y \
common-obj-m)
@@ -253,6 +252,7 @@ $(SOFTMMU_ALL_RULES): $(storage-daemon-obj-y)
$(SOFTMMU_ALL_RULES): $(chardev-obj-y)
$(SOFTMMU_ALL_RULES): $(crypto-obj-y)
$(SOFTMMU_ALL_RULES): $(io-obj-y)
+$(SOFTMMU_ALL_RULES): $(qom-obj-y)
$(SOFTMMU_ALL_RULES): config-all-devices.mak
SOFTMMU_FUZZ_RULES=$(filter %-softmmu/fuzz, $(TARGET_DIRS_RULES))
diff --git a/Makefile.objs b/Makefile.objs
index baf1565..84bfa2a 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -1,6 +1,6 @@
#######################################################################
# Common libraries for tools and emulators
-qom-obj-y = qom/
+qom-obj-y = qom/libqom.fa
#######################################################################
# code used by both qemu system emulation and qemu-img
diff --git a/Makefile.target b/Makefile.target
index 257afc2..1e04551 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -191,13 +191,14 @@ all-obj-y := $(obj-y)
common-obj-m :=
include $(SRC_PATH)/Makefile.objs
+dummy := $(call fix-paths,../,, \
+ qom-obj-y)
dummy := $(call unnest-vars,.., \
authz-obj-y \
block-obj-y \
block-obj-m \
chardev-obj-y \
crypto-obj-y \
- qom-obj-y \
io-obj-y \
common-obj-y \
common-obj-m)
diff --git a/meson.build b/meson.build
index 6f1e199..6517d7e 100644
--- a/meson.build
+++ b/meson.build
@@ -319,6 +319,7 @@ libqemuutil = static_library('qemuutil',
qemuutil = declare_dependency(link_with: libqemuutil,
sources: genh + version_res)
+subdir('qom')
subdir('fsdev')
# Other build targets
diff --git a/qom/Makefile.objs b/qom/Makefile.objs
index 1b45d10..b962904 100644
--- a/qom/Makefile.objs
+++ b/qom/Makefile.objs
@@ -1,5 +1,2 @@
-qom-obj-y = object.o container.o qom-qobject.o
-qom-obj-y += object_interfaces.o
-
common-obj-$(CONFIG_SOFTMMU) += qom-hmp-cmds.o qom-qmp-cmds.o
storage-daemon-obj-y += qom-qmp-cmds.o
diff --git a/qom/meson.build b/qom/meson.build
new file mode 100644
index 0000000..3c41ed3
--- /dev/null
+++ b/qom/meson.build
@@ -0,0 +1,15 @@
+qom_ss = ss.source_set()
+qom_ss.add(files(
+ 'container.c',
+ 'object.c',
+ 'object_interfaces.c',
+ 'qom-qobject.c',
+))
+
+qom_ss = qom_ss.apply(config_host, strict: false)
+libqom = static_library('qom', qom_ss.sources(),
+ dependencies: [qom_ss.dependencies()],
+ link_with: [libqemuutil],
+ name_suffix: 'fa')
+
+qom = declare_dependency(link_whole: libqom)
--
1.8.3.1
- [PATCH 042/147] meson: add qemu-edid, (continued)
- [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
- [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 <=
- [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, 2020/08/10
- [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