diff options
author | Michel Selten <michel@mselten.demon.nl> | 2004-02-15 22:25:32 +0300 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2004-02-15 22:25:32 +0300 |
commit | 9330e553e88fe77b3a08cfac3a13046031b58e56 (patch) | |
tree | 69b9155aad185dc347bef0dcffaf8c538980fb72 /intern/SoundSystem | |
parent | 2fbf2b3775405566eb5906da2c7223eb9b626427 (diff) |
SCons updates
* libraries are now generated in [BUILD_DIR]/lib
* passed the user_options to all libraries now.
This means I could remove a couple of Export/Import lines.
* Changed the order in source/blender/src/SConscript and
source/gameengine/SConscript.
All libraries are now sorted alphabetically. This has no impact on the build
process.
Diffstat (limited to 'intern/SoundSystem')
-rw-r--r-- | intern/SoundSystem/SConscript | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/intern/SoundSystem/SConscript b/intern/SoundSystem/SConscript index d6d87213962..16f4e4b8a3a 100644 --- a/intern/SoundSystem/SConscript +++ b/intern/SoundSystem/SConscript @@ -7,8 +7,7 @@ soundsys_env = Environment() Import ('cflags') Import ('cxxflags') Import ('defines') -Import ('use_openal') -Import ('use_fmod') +Import ('user_options_dict') Import ('extra_includes') soundsys_env.Append (CCFLAGS = cflags) @@ -34,20 +33,19 @@ soundsys_env.Append (CPPPATH = ['.', 'dummy', 'openal']) -if use_openal == 'true': +if user_options_dict['USE_OPENAL'] == 1: source_files += ['openal/SND_OpenALDevice.cpp', 'openal/pthread_cancel.cpp'] if sys.platform=='win32': defines += ['_LIB'] soundsys_env.Append(CPPDEFINES = defines) - -if use_fmod == 'true': +if user_options_dict['USE_FMOD'] == 1: source_files += ['fmod/SND_FmodDevice.cpp'] -if use_openal == 'false' and use_fmod == 'false': +if user_options_dict['USE_OPENAL'] == 0 and user_options_dict['USE_FMOD'] == 0: soundsys_env.Append (CPPDEFINES = 'NO_SOUND') soundsys_env.Append (CPPPATH = extra_includes) -soundsys_env.Library (target='#/lib/soundsystem', source=source_files) +soundsys_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/soundsystem', source=source_files) |