summaryrefslogtreecommitdiff
path: root/dump
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 /dump
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 'dump')
-rw-r--r--dump/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/dump/meson.build b/dump/meson.build
index 26e1561ed4..bef8276aa5 100644
--- a/dump/meson.build
+++ b/dump/meson.build
@@ -1,3 +1,6 @@
-system_ss.add([files('dump.c', 'dump-hmp-cmds.c'), snappy, lzo])
+system_ss.add([files('dump.c'), snappy, lzo])
+if have_hmp
+ system_ss.add(files('dump-hmp-cmds.c'))
+endif
specific_ss.add(when: 'CONFIG_WINDUMP', if_true: files('win_dump-x86.c'))
system_ss.add(when: 'CONFIG_WINDUMP', if_false: files('win_dump-stubs.c'))