fix for build problem with audiospace and implicit declaration.
[blender.git] / intern / audaspace / SConscript
1 #!/usr/bin/python
2
3 Import ('env')
4
5 sources = env.Glob('intern/*.cpp') + env.Glob('FX/*.cpp') + env.Glob('SRC/*.cpp')
6 incs = '. intern FX SRC ' + env['BF_PTHREADS_INC'] + ' ' + env['BF_LIBSAMPLERATE_INC']
7 defs = []
8
9 if env['WITH_BF_FFMPEG']:
10         sources += env.Glob('ffmpeg/*.cpp')
11         incs += ' ffmpeg ' + env['BF_FFMPEG_INC']
12         defs.append('WITH_FFMPEG')
13
14 if env['WITH_BF_SDL']:
15         sources += env.Glob('SDL/*.cpp')
16         incs += ' SDL ' + env['BF_SDL_INC']
17         defs.append('WITH_SDL')
18
19 if env['WITH_BF_OPENAL']:
20         sources += env.Glob('OpenAL/*.cpp')
21         incs += ' OpenAL ' + env['BF_OPENAL_INC']
22         defs.append('WITH_OPENAL')
23
24 env.BlenderLib ('bf_audaspace', sources, Split(incs), defs, libtype=['intern'], priority = [25] )