xref: /openbmc/qemu/audio/meson.build (revision 5242ef88)
1softmmu_ss.add([spice_headers, files('audio.c')])
2softmmu_ss.add(files(
3  'audio_legacy.c',
4  'mixeng.c',
5  'noaudio.c',
6  'wavaudio.c',
7  'wavcapture.c',
8))
9
10softmmu_ss.add(when: coreaudio, if_true: files('coreaudio.m'))
11softmmu_ss.add(when: dsound, if_true: files('dsoundaudio.c', 'audio_win_int.c'))
12
13audio_modules = {}
14foreach m : [
15  ['alsa', alsa, files('alsaaudio.c')],
16  ['oss', oss, files('ossaudio.c')],
17  ['pa', pulse, files('paaudio.c')],
18  ['sdl', sdl, files('sdlaudio.c')],
19  ['jack', jack, files('jackaudio.c')],
20  ['spice', spice, files('spiceaudio.c')]
21]
22  if m[1].found()
23    module_ss = ss.source_set()
24    module_ss.add(m[1], m[2])
25    audio_modules += {m[0] : module_ss}
26  endif
27endforeach
28
29if dbus_display
30    module_ss = ss.source_set()
31    module_ss.add(when: [gio, pixman, opengl, 'CONFIG_GIO'], if_true: files('dbusaudio.c'))
32    audio_modules += {'dbus': module_ss}
33endif
34
35modules += {'audio': audio_modules}
36