summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2026-08-28 16:04:42 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2026-08-29 12:07:45 +0400
commit34c5de5c6d6049b7cd0d475a32da8760f35c0ab5 (patch)
treeceef6b37f0e49870cf328dfb9c05d610e519916e /migration
parentbe86cd220ad1bbe4fad11010580ae871c954df76 (diff)
downloadqemu-34c5de5c6d6049b7cd0d475a32da8760f35c0ab5.tar.gz
qemu-34c5de5c6d6049b7cd0d475a32da8760f35c0ab5.zip
build-sys: make HMP source files conditional on have_hmp
Exclude all *-hmp-cmds.c files and HMP-only source files from the build when HMP is disabled. Also conditionalise the hmp-commands.hx header generation and the test-hmp qtest. Acked-by: Dr. David Alan Gilbert <dave@treblig.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260828-qemu-no-hmp-v5-45-9227de146347@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/migration/meson.build b/migration/meson.build
index 0a9a5d0d37..4ab9d99cea 100644
--- a/migration/meson.build
+++ b/migration/meson.build
@@ -36,7 +36,9 @@ system_ss.add(files(
'socket.c',
'tls.c',
), gnutls, zlib)
-system_ss.add([spice_headers, files('migration-hmp-cmds.c'), spice])
+if have_hmp
+ system_ss.add([spice_headers, files('migration-hmp-cmds.c'), spice])
+endif
if get_option('replication').allowed()
system_ss.add(files('colo-failover.c', 'colo.c', 'multifd-colo.c'))