From a0e61807a3492b57f10d78e97fed97a0d3b21933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Wed, 24 Feb 2021 18:16:42 +0100 Subject: qapi: Remove QMP events and commands from user-mode builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We removed the QMP loop in user-mode builds in commit 1935e0e4e09 ("qapi/meson: Remove QMP from user-mode emulation"), now commands and events code is unreachable. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210224171642.3242293-1-philmd@redhat.com> Acked-by: Paolo Bonzini Signed-off-by: Markus Armbruster --- qapi/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'qapi') diff --git a/qapi/meson.build b/qapi/meson.build index 0652569bc4..fcb15a78f1 100644 --- a/qapi/meson.build +++ b/qapi/meson.build @@ -102,11 +102,15 @@ foreach module : qapi_all_modules 'qapi-types-@0@.h'.format(module), 'qapi-visit-@0@.c'.format(module), 'qapi-visit-@0@.h'.format(module), - 'qapi-events-@0@.c'.format(module), - 'qapi-events-@0@.h'.format(module), - 'qapi-commands-@0@.c'.format(module), - 'qapi-commands-@0@.h'.format(module), ] + if have_system or have_tools + qapi_module_outputs += [ + 'qapi-events-@0@.c'.format(module), + 'qapi-events-@0@.h'.format(module), + 'qapi-commands-@0@.c'.format(module), + 'qapi-commands-@0@.h'.format(module), + ] + endif if module.endswith('-target') qapi_specific_outputs += qapi_module_outputs else -- cgit v1.2.3