FFMPEG defs was initialized as an array, a string was appended
[blender.git] / source / blender / imbuf / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('intern/*.c')
5
6 incs = '. ../makesdna #/intern/guardedalloc #/intern/memutil ../blenlib'
7 incs += ' ../avi ../quicktime ../blenkernel'
8
9 incs += ' ' + env['BF_JPEG_INC']
10 incs += ' ' + env['BF_PNG_INC']
11 incs += ' ' + env['BF_TIFF_INC']
12 incs += ' ' + env['BF_ZLIB_INC']
13
14 defs = []
15
16 if env['WITH_BF_OPENEXR'] == 1:
17     defs.append('WITH_OPENEXR')
18
19 if env['WITH_BF_FFMPEG'] == 1:
20     defs.append(' WITH_FFMPEG')
21
22 if env['WITH_BF_QUICKTIME']==1:
23         incs += ' ' + env['BF_QUICKTIME_INC']
24         defs.append('WITH_QUICKTIME')
25
26 env.BlenderLib ( libname = 'blender_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype='core', priority = 80 )