blender/intern/SoundSystem/SConscript

48 lines
1.7 KiB
Python
Raw Normal View History

#!/usr/bin/python
2004-01-04 21:11:59 +00:00
import sys
Import ('user_options_dict')
2004-01-04 21:11:59 +00:00
Import ('extra_includes')
Import ('library_env')
2004-01-04 21:11:59 +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 = ['.',
'../SoundSystem',
2004-01-04 21:11:59 +00:00
'intern',
'../moto/include',
'../string',
'dummy',
'openal',
'sdl'])
2004-01-04 21:11:59 +00:00
if user_options_dict['USE_OPENAL'] == 1:
2004-01-04 21:11:59 +00:00
source_files += ['openal/SND_OpenALDevice.cpp',
'openal/pthread_cancel.cpp',
'sdl/SND_SDLCDDevice.cpp']
soundsys_env.Append (CPPPATH=user_options_dict['OPENAL_INCLUDE'])
soundsys_env.Append (CPPPATH=user_options_dict['SDL_INCLUDE'])
if user_options_dict['USE_FMOD'] == 1:
2004-01-04 21:11:59 +00:00
source_files += ['fmod/SND_FmodDevice.cpp']
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)
soundsys_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/soundsystem', source=source_files)