1softmmu_ss.add(files( 2 'audio.c', 3 'audio_legacy.c', 4 'mixeng.c', 5 'noaudio.c', 6 'wavaudio.c', 7 'wavcapture.c', 8)) 9 10softmmu_ss.add(when: [spice, 'CONFIG_SPICE'], if_true: files('spiceaudio.c')) 11softmmu_ss.add(when: [coreaudio, 'CONFIG_AUDIO_COREAUDIO'], if_true: files('coreaudio.c')) 12softmmu_ss.add(when: [dsound, 'CONFIG_AUDIO_DSOUND'], if_true: files('dsoundaudio.c')) 13softmmu_ss.add(when: ['CONFIG_AUDIO_WIN_INT'], if_true: files('audio_win_int.c')) 14 15audio_modules = {} 16foreach m : [ 17 ['CONFIG_AUDIO_ALSA', 'alsa', alsa, 'alsaaudio.c'], 18 ['CONFIG_AUDIO_OSS', 'oss', oss, 'ossaudio.c'], 19 ['CONFIG_AUDIO_PA', 'pa', pulse, 'paaudio.c'], 20 ['CONFIG_AUDIO_SDL', 'sdl', sdl, 'sdlaudio.c'], 21 ['CONFIG_AUDIO_JACK', 'jack', jack, 'jackaudio.c'] 22] 23 if config_host.has_key(m[0]) 24 module_ss = ss.source_set() 25 module_ss.add(when: m[2], if_true: files(m[3])) 26 audio_modules += {m[1] : module_ss} 27 endif 28endforeach 29 30modules += {'audio': audio_modules} 31