6c1f67d69dfc143d54fda5fe758df79e0ee3aae8
[blender-staging.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 ../yafray'
10
11 defs = []
12
13 if env['WITH_BF_QUICKTIME'] == 1:
14     defs.append('WITH_QUICKTIME')
15     incs += ' ' + env['BF_QUICKTIME_INC']
16
17 if env['WITH_BF_FFMPEG'] == 1:
18     defs.append('WITH_FFMPEG')
19
20 if env['WITH_BF_OPENEXR']:
21     defs.append('WITH_OPENEXR')
22
23 if env['OURPLATFORM']=='linux2':
24     cflags='-pthread'
25
26 env.BlenderLib ( libname = 'blender_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=45, compileflags=cflags )