diff options
author | Philippe Mathieu-Daudé | 2021-01-22 21:44:39 +0100 |
---|---|---|
committer | Paolo Bonzini | 2021-02-08 14:43:55 +0100 |
commit | 1935e0e4e09bcff8059ab17d2ce36fb1fbb70628 (patch) | |
tree | 2f50540fb9c067c9c8457691ac1982a63c199c97 | |
parent | qapi/meson: Restrict qdev code to system-mode emulation (diff) | |
download | qemu-1935e0e4e09bcff8059ab17d2ce36fb1fbb70628.tar.gz qemu-1935e0e4e09bcff8059ab17d2ce36fb1fbb70628.tar.xz qemu-1935e0e4e09bcff8059ab17d2ce36fb1fbb70628.zip |
qapi/meson: Remove QMP from user-mode emulation
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210122204441.2145197-11-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | qapi/meson.build | 10 | ||||
-rw-r--r-- | tests/meson.build | 7 |
2 files changed, 13 insertions, 4 deletions
diff --git a/qapi/meson.build b/qapi/meson.build index 2839871b47..b301a46f04 100644 --- a/qapi/meson.build +++ b/qapi/meson.build @@ -4,14 +4,18 @@ util_ss.add(files( '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 6f1ff926d2..7d7da6a636 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -86,7 +86,6 @@ tests = { '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 @@ tests = { 'test-qapi-util': [], } +if have_system or have_tools + tests += { + 'test-qmp-event': [testqapi], + } +endif + test_deps = { 'test-qht-par': qht_bench, } |