]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: Remove QMP events and commands from user-mode builds
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 24 Feb 2021 17:16:42 +0000 (18:16 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 5 Mar 2021 14:40:49 +0000 (15:40 +0100)
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é <philmd@redhat.com>
Message-Id: <20210224171642.3242293-1-philmd@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/meson.build

index 0652569bc43762a3066ae4149325b3ffc5c020ca..fcb15a78f1529b35db95e9edd3fc6a508f8f64e9 100644 (file)
@@ -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