Bugfix #17497
[blender.git] / source / blender / render / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 cflags=''
5 sources = env.Glob('intern/source/*.c')
6
7 incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna'
8 incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
9 incs += ' ../quicktime ../include ../../kernel/gen_messaging ../blenloader'
10
11 defs = []
12
13 if env['WITH_BF_YAFRAY'] == 1:
14     incs += ' ../yafray'
15 else:
16     defs.append('DISABLE_YAFRAY')
17
18 if env['WITH_BF_QUICKTIME'] == 1:
19     defs.append('WITH_QUICKTIME')
20     incs += ' ' + env['BF_QUICKTIME_INC']
21
22 if env['WITH_BF_FFMPEG'] == 1:
23     defs.append('WITH_FFMPEG')
24
25 if env['WITH_BF_OPENEXR']:
26     defs.append('WITH_OPENEXR')
27
28 if env['OURPLATFORM']=='linux2':
29     cflags='-pthread'
30
31 env.BlenderLib ( libname = 'blender_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=45, compileflags=cflags )