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 = [
|
2010-07-19 03:42:37 +00:00
|
|
|
'AudioCommonConfig.cpp',
|
|
|
|
'WaveFile.cpp',
|
|
|
|
'Mixer.cpp',
|
|
|
|
'AudioCommon.cpp',
|
2010-11-02 00:16:49 +00:00
|
|
|
'NullSoundStream.cpp',
|
2010-07-19 03:42:37 +00:00
|
|
|
]
|
2010-07-09 01:26:53 +00:00
|
|
|
|
2009-09-24 21:35:06 +00:00
|
|
|
if sys.platform == 'darwin':
|
2010-07-19 03:42:37 +00:00
|
|
|
files += [ 'CoreAudioSoundStream.cpp' ]
|
2010-06-26 19:17:43 +00:00
|
|
|
else:
|
2010-07-19 03:42:37 +00:00
|
|
|
if env['HAVE_ALSA']:
|
|
|
|
files += [ 'AlsaSoundStream.cpp' ]
|
|
|
|
if env['HAVE_AO']:
|
|
|
|
files += [ 'AOSoundStream.cpp' ]
|
2011-02-03 21:35:26 +00:00
|
|
|
if env['HAVE_OPENAL']:
|
2010-07-19 03:42:37 +00:00
|
|
|
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
|
|
|
if env['HAVE_PULSEAUDIO']:
|
|
|
|
files += [ 'PulseAudioStream.cpp' ]
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
files += [ 'DSoundStream.cpp' ]
|
2010-11-10 08:28:26 +00:00
|
|
|
files += [ 'XAudio2Stream.cpp' ]
|
2010-07-19 03:42:37 +00:00
|
|
|
|
2011-02-04 00:46:56 +00:00
|
|
|
env['LIBS'] += env.StaticObject(files)
|