blob: 5c953c4e58c4b8756a756db8bd61a8d4b443a254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# -*- python -*-
Import('env')
import sys
files = [
'Src/AudioCommon.cpp',
'Src/AudioCommonConfig.cpp',
'Src/Mixer.cpp',
'Src/NullSoundStream.cpp',
'Src/WaveFile.cpp',
]
if sys.platform == 'darwin':
files += ['Src/CoreAudioSoundStream.cpp']
elif sys.platform == 'win32':
files += ['Src/DSoundStream.cpp']
files += ['Src/XAudio2Stream.cpp']
else:
if env['HAVE_ALSA']:
files += ['Src/AlsaSoundStream.cpp']
if env['HAVE_AO']:
files += ['Src/AOSoundStream.cpp']
if env['HAVE_OPENAL']:
files += ['Src/OpenALStream.cpp', 'Src/aldlist.cpp']
if env['HAVE_PULSEAUDIO']:
files += ['Src/PulseAudioStream.cpp']
env['LIBS'] += env.StaticLibrary('audiocommon', files)
|