]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
audio/dbus: Fix building with modules on macOS
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 3 Feb 2022 15:25:09 +0000 (16:25 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 15 Mar 2022 12:36:33 +0000 (13:36 +0100)
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 <lizhang@suse.de>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
audio/meson.build

index 0ac3791d0bd145c90e37b1aa3a49f7cdfe99a109..d9b295514f5251ccdc9818e6b757c3e59bf0f1d4 100644 (file)
@@ -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