2009-09-15 10:47:19 +00:00
|
|
|
|
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-03-30 17:45:35 +00:00
|
|
|
acenv = env.Clone()
|
|
|
|
acenv.Append(CXXFLAGS = [ '-fPIC' ])
|
|
|
|
|
|
|
|
if acenv['HAVE_OPENAL']:
|
|
|
|
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
|
|
|
|
|
|
|
if acenv['HAVE_AO']:
|
|
|
|
files += [ 'AOSoundStream.cpp' ]
|
2009-09-09 21:26:33 +00:00
|
|
|
|
2009-09-15 10:47:19 +00:00
|
|
|
if acenv['HAVE_ALSA']:
|
|
|
|
files += [ 'AlsaSoundStream.cpp' ]
|
2009-10-15 06:50:04 +00:00
|
|
|
|
2009-10-15 17:28:23 +00:00
|
|
|
if acenv['HAVE_PULSEAUDIO']:
|
|
|
|
files += [ 'PulseAudioStream.cpp' ]
|
|
|
|
|
2009-09-24 21:35:06 +00:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
files += [ 'CoreAudioSoundStream.cpp' ]
|
2010-01-17 08:47:35 +00:00
|
|
|
acenv['FRAMEWORKS'] = [ 'CoreAudio', 'AudioUnit' ]
|
2009-03-30 17:45:35 +00:00
|
|
|
|
2009-04-12 21:30:22 +00:00
|
|
|
acenv.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|