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