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
|
|
|
]
|
|
|
|
|
2009-09-24 21:35:06 +00:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
files += [ 'CoreAudioSoundStream.cpp' ]
|
2010-06-26 19:17:43 +00:00
|
|
|
else:
|
|
|
|
if env['HAVE_OPENAL']:
|
|
|
|
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
|
|
|
|
|
|
|
if not sys.platform == 'win32' and not sys.platform == 'darwin':
|
|
|
|
if env['HAVE_AO']:
|
|
|
|
files += [ 'AOSoundStream.cpp' ]
|
|
|
|
if env['HAVE_ALSA']:
|
|
|
|
files += [ 'AlsaSoundStream.cpp' ]
|
|
|
|
if env['HAVE_PULSEAUDIO']:
|
|
|
|
files += [ 'PulseAudioStream.cpp' ]
|
2009-03-30 17:45:35 +00:00
|
|
|
|
2010-06-10 14:18:21 +00:00
|
|
|
env.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|