mirror of
https://github.com/qemu/qemu.git
synced 2026-04-05 21:46:25 +00:00
When there are no audio drivers configure fails with "ERROR: Command
cannot have '@INPUT@', since no input files were specified".
Fixes: 3220b38a8d ("tests: start manual audio backend test")
Signed-off-by: Anton Kuchin <antonkuchin@nebius.com>
Message-ID: <DB8P190MB07142E1BA8DEEA8B2E41D5B2DB57A@DB8P190MB0714.EURP190.PROD.OUTLOOK.COM>
[ Marc-André - use empty modinfo stub ]
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
26 lines
910 B
Meson
26 lines
910 B
Meson
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
if not have_system
|
|
subdir_done()
|
|
endif
|
|
|
|
modinfo_dep = not_found
|
|
if enable_modules
|
|
modinfo_src = 'modinfo-stub.c'
|
|
if audio_modinfo_files.length() != 0
|
|
modinfo_src = custom_target('modinfo.c',
|
|
output: 'modinfo.c',
|
|
input: audio_modinfo_files,
|
|
command: [modinfo_generate, '--skip-missing-deps', '@INPUT@'],
|
|
capture: true)
|
|
endif
|
|
modinfo_lib = static_library('modinfo.c', modinfo_src)
|
|
modinfo_dep = declare_dependency(link_with: modinfo_lib)
|
|
endif
|
|
|
|
# manual audio test - not part of automated test suite
|
|
# as it relies on audio system
|
|
executable('test-audio',
|
|
sources: [files('test-audio.c', 'audio-stubs.c'), dbus_display1],
|
|
dependencies: [audio, qemuutil, modinfo_dep, gio, spice, sdl])
|