Added CD Audio support for OpenAL.
[blender-staging.git] / intern / SoundSystem / SConscript
1 import sys
2
3 Import ('user_options_dict')
4 Import ('extra_includes')
5 Import ('library_env')
6
7 soundsys_env = library_env.Copy ()
8
9 source_files = ['dummy/SND_DummyDevice.cpp',
10                 'intern/SND_AudioDevice.cpp',
11                 'intern/SND_C-api.cpp',
12                 'intern/SND_CDObject.cpp',
13                 'intern/SND_DeviceManager.cpp',
14                 'intern/SND_IdObject.cpp',
15                 'intern/SND_Scene.cpp',
16                 'intern/SND_SoundListener.cpp',
17                 'intern/SND_SoundObject.cpp',
18                 'intern/SND_Utils.cpp',
19                 'intern/SND_WaveCache.cpp',
20                 'intern/SND_WaveSlot.cpp']
21
22 soundsys_env.Append (CPPPATH = ['.',
23                                 'intern',
24                                 '../moto/include',
25                                 '../string',
26                                 'dummy',
27                                 'openal',
28                                 'sdl'])
29
30 if user_options_dict['USE_OPENAL'] == 1:
31     source_files += ['openal/SND_OpenALDevice.cpp',
32                      'openal/pthread_cancel.cpp',
33                      'sdl/SND_SDLCDDevice.cpp']
34     soundsys_env.Append (CPPPATH=user_options_dict['OPENAL_INCLUDE'])
35     soundsys_env.Append (CPPPATH=user_options_dict['SDL_INCLUDE'])
36         
37 if user_options_dict['USE_FMOD'] == 1:
38     source_files += ['fmod/SND_FmodDevice.cpp']
39
40 if user_options_dict['USE_OPENAL'] == 0 and user_options_dict['USE_FMOD'] == 0:
41     soundsys_env.Append (CPPDEFINES = 'NO_SOUND')
42
43 soundsys_env.Append (CPPPATH = extra_includes)
44
45 soundsys_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/soundsystem', source=source_files)