2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2004-01-04 21:11:59 +00:00
|
|
|
import sys
|
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
Import ('user_options_dict')
|
2004-01-04 21:11:59 +00:00
|
|
|
Import ('extra_includes')
|
2004-02-29 21:40:48 +00:00
|
|
|
Import ('library_env')
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2004-02-29 21:40:48 +00:00
|
|
|
soundsys_env = library_env.Copy ()
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
source_files = ['dummy/SND_DummyDevice.cpp',
|
|
|
|
'intern/SND_AudioDevice.cpp',
|
|
|
|
'intern/SND_C-api.cpp',
|
|
|
|
'intern/SND_CDObject.cpp',
|
|
|
|
'intern/SND_DeviceManager.cpp',
|
|
|
|
'intern/SND_IdObject.cpp',
|
|
|
|
'intern/SND_Scene.cpp',
|
|
|
|
'intern/SND_SoundListener.cpp',
|
|
|
|
'intern/SND_SoundObject.cpp',
|
|
|
|
'intern/SND_Utils.cpp',
|
|
|
|
'intern/SND_WaveCache.cpp',
|
|
|
|
'intern/SND_WaveSlot.cpp']
|
|
|
|
|
|
|
|
soundsys_env.Append (CPPPATH = ['.',
|
2005-08-04 16:05:28 +00:00
|
|
|
'../SoundSystem',
|
2004-01-04 21:11:59 +00:00
|
|
|
'intern',
|
|
|
|
'../moto/include',
|
|
|
|
'../string',
|
|
|
|
'dummy',
|
2004-04-02 13:15:18 +00:00
|
|
|
'openal',
|
|
|
|
'sdl'])
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
if user_options_dict['USE_OPENAL'] == 1:
|
2004-01-04 21:11:59 +00:00
|
|
|
source_files += ['openal/SND_OpenALDevice.cpp',
|
2004-04-02 13:15:18 +00:00
|
|
|
'openal/pthread_cancel.cpp',
|
|
|
|
'sdl/SND_SDLCDDevice.cpp']
|
2004-02-23 16:18:28 +00:00
|
|
|
soundsys_env.Append (CPPPATH=user_options_dict['OPENAL_INCLUDE'])
|
2004-04-02 13:15:18 +00:00
|
|
|
soundsys_env.Append (CPPPATH=user_options_dict['SDL_INCLUDE'])
|
2004-01-05 18:17:23 +00:00
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
if user_options_dict['USE_FMOD'] == 1:
|
2004-01-04 21:11:59 +00:00
|
|
|
source_files += ['fmod/SND_FmodDevice.cpp']
|
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
if user_options_dict['USE_OPENAL'] == 0 and user_options_dict['USE_FMOD'] == 0:
|
2004-01-04 21:11:59 +00:00
|
|
|
soundsys_env.Append (CPPDEFINES = 'NO_SOUND')
|
|
|
|
|
|
|
|
soundsys_env.Append (CPPPATH = extra_includes)
|
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
soundsys_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/soundsystem', source=source_files)
|