From: Philippe Mathieu-Daudé Date: Thu, 3 Feb 2022 15:25:09 +0000 (+0100) Subject: audio/dbus: Fix building with modules on macOS X-Git-Tag: qemu-xen-4.17.0-rc4~46^2~13 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c9c847481;p=qemu-xen.git audio/dbus: Fix building with modules on macOS When configuring QEMU with --enable-modules we get on macOS: --- stderr --- Dependency ui-dbus cannot be satisfied ui-dbus depends on pixman and opengl, so add these dependencies to audio-dbus. Fixes: 739362d420 ("audio: add "dbus" audio backend") Reviewed-by: Li Zhang Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/audio/meson.build b/audio/meson.build index 0ac3791d0b..d9b295514f 100644 --- a/audio/meson.build +++ b/audio/meson.build @@ -28,7 +28,7 @@ endforeach if dbus_display module_ss = ss.source_set() - module_ss.add(when: gio, if_true: files('dbusaudio.c')) + module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c')) audio_modules += {'dbus': module_ss} endif