On 23/01/2026 07:49, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> This can help create tests, for example.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> meson.build | 10 +++++++++-
> audio/meson.build | 3 ++-
> 2 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index a84f14258b0..d9e2834f6e8 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -4059,11 +4059,19 @@ libhwcore = static_library('hwcore', sources: hwcore_ss.sources() + genh,
> hwcore = declare_dependency(objects: libhwcore.extract_all_objects(recursive: false))
> common_ss.add(hwcore)
>
> +audio_ss = audio_ss.apply({})
> +libaudio = static_library('qemuaudio', audio_ss.sources() + genh,
> + dependencies: [audio_ss.dependencies()],
> + build_by_default: false)
> +
> +audio = declare_dependency(objects: libaudio.extract_all_objects(recursive: false),
> + dependencies: [audio_ss.dependencies(), qom])
> +
> ###########
> # Targets #
> ###########
>
> -system_ss.add(authz, blockdev, chardev, crypto, io, qmp)
> +system_ss.add(authz, blockdev, chardev, crypto, io, qmp, audio)
> common_ss.add(qom, qemuutil)
>
> libuser = static_library('user',
> diff --git a/audio/meson.build b/audio/meson.build
> index 23fb66d571f..a5fec14fb3a 100644
> --- a/audio/meson.build
> +++ b/audio/meson.build
> @@ -1,4 +1,5 @@
> -system_ss.add(files(
> +audio_ss = ss.source_set()
> +audio_ss.add(files(
> 'audio.c',
> 'mixeng.c',
> 'noaudio.c',
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
ATB,
Mark.