[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/12] qapi/meson: Remove QMP from user-mode emulation
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 10/12] qapi/meson: Remove QMP from user-mode emulation |
Date: |
Fri, 22 Jan 2021 21:44:39 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
Cc: Laurent Vivier <laurent@vivier.eu>
---
qapi/meson.build | 10 +++++++---
tests/meson.build | 7 ++++++-
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/qapi/meson.build b/qapi/meson.build
index 2839871b478..b301a46f04a 100644
--- a/qapi/meson.build
+++ b/qapi/meson.build
@@ -4,14 +4,18 @@
'qapi-dealloc-visitor.c',
'qapi-util.c',
'qapi-visit-core.c',
- 'qmp-dispatch.c',
- 'qmp-event.c',
- 'qmp-registry.c',
'qobject-input-visitor.c',
'qobject-output-visitor.c',
'string-input-visitor.c',
'string-output-visitor.c',
))
+if have_system or have_tools
+ util_ss.add(files(
+ 'qmp-dispatch.c',
+ 'qmp-event.c',
+ 'qmp-registry.c',
+ ))
+endif
qapi_all_modules = [
'acpi',
diff --git a/tests/meson.build b/tests/meson.build
index 6f1ff926d26..7d7da6a6364 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -86,7 +86,6 @@
'test-qobject-input-visitor': [testqapi],
'test-string-input-visitor': [testqapi],
'test-string-output-visitor': [testqapi],
- 'test-qmp-event': [testqapi],
'test-opts-visitor': [testqapi],
'test-visitor-serialization': [testqapi],
'test-bitmap': [],
@@ -117,6 +116,12 @@
'test-qapi-util': [],
}
+if have_system or have_tools
+ tests += {
+ 'test-qmp-event': [testqapi],
+ }
+endif
+
test_deps = {
'test-qht-par': qht_bench,
}
--
2.26.2
- [PATCH v2 06/12] meson: Merge trace_events_subdirs array, (continued)
- [PATCH v2 10/12] qapi/meson: Remove QMP from user-mode emulation,
Philippe Mathieu-Daudé <=
- [PATCH v2 11/12] qapi/meson: Restrict system-mode specific modules, Philippe Mathieu-Daudé, 2021/01/22
- [PATCH v2 12/12] qapi/meson: Restrict UI module to system emulation and tools, Philippe Mathieu-Daudé, 2021/01/22
- Re: [PATCH v2 00/12] buildsys: Do not build various objects if not necessary, Paolo Bonzini, 2021/01/23
- Re: [PATCH v2 00/12] buildsys: Do not build various objects if not necessary, Alex Bennée, 2021/01/26
Re: [PATCH v2 00/12] buildsys: Do not build various objects if not necessary, Paolo Bonzini, 2021/01/29