2009-03-23 20:55:32 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
2009-09-24 21:35:06 +00:00
|
|
|
import sys
|
2009-03-23 20:55:32 +00:00
|
|
|
|
|
|
|
files = [
|
2009-03-30 09:55:50 +00:00
|
|
|
'AudioCommonConfig.cpp',
|
|
|
|
'WaveFile.cpp',
|
2009-03-26 09:29:14 +00:00
|
|
|
'Mixer.cpp',
|
|
|
|
'AudioCommon.cpp',
|
2009-03-23 20:55:32 +00:00
|
|
|
]
|
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
if env['HAVE_OPENAL']:
|
2009-03-30 17:45:35 +00:00
|
|
|
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
if env['HAVE_AO']:
|
2009-03-30 17:45:35 +00:00
|
|
|
files += [ 'AOSoundStream.cpp' ]
|
2009-09-09 21:26:33 +00:00
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
if env['HAVE_ALSA']:
|
2009-09-15 10:47:19 +00:00
|
|
|
files += [ 'AlsaSoundStream.cpp' ]
|
2009-10-15 06:50:04 +00:00
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
if env['HAVE_PULSEAUDIO']:
|
2009-10-15 17:28:23 +00:00
|
|
|
files += [ 'PulseAudioStream.cpp' ]
|
|
|
|
|
2009-09-24 21:35:06 +00:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
files += [ 'CoreAudioSoundStream.cpp' ]
|
2009-03-30 17:45:35 +00:00
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
env.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|