diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2026-08-28 16:04:42 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2026-08-29 12:07:45 +0400 |
| commit | 34c5de5c6d6049b7cd0d475a32da8760f35c0ab5 (patch) | |
| tree | ceef6b37f0e49870cf328dfb9c05d610e519916e /trace | |
| parent | be86cd220ad1bbe4fad11010580ae871c954df76 (diff) | |
| download | qemu-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 'trace')
| -rw-r--r-- | trace/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/trace/meson.build b/trace/meson.build index d89a0db82a..4e5681c44c 100644 --- a/trace/meson.build +++ b/trace/meson.build @@ -1,4 +1,7 @@ -system_ss.add(files('control-target.c', 'trace-hmp-cmds.c')) +system_ss.add(files('control-target.c')) +if have_hmp + system_ss.add(files('trace-hmp-cmds.c')) +endif trace_rs_targets = [] trace_events_files = [] foreach item : [ '.' ] + trace_events_subdirs + qapi_trace_events |
