Another try with building better trees (this should never make worst trees)
[blender.git] / source / blender / render / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 cflags=''
5 sources = env.Glob('intern/source/*.c')
6 raysources = env.Glob('intern/raytrace/*.cpp')
7
8 incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna'
9 incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
10 incs += ' ../include ../blenloader'
11
12 defs = []
13
14 if env['WITH_BF_QUICKTIME']:
15     defs.append('WITH_QUICKTIME')
16     incs += ' ../quicktime ' + env['BF_QUICKTIME_INC']
17
18 if env['WITH_BF_FFMPEG']:
19     defs.append('WITH_FFMPEG')
20
21 if env['WITH_BF_OPENEXR']:
22     defs.append('WITH_OPENEXR')
23
24 if env['OURPLATFORM']=='linux2':
25     cflags='-pthread'
26
27 env.BlenderLib ( libname = 'bf_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags )
28 env.BlenderLib ( libname = 'bf_render_raytrace', sources = raysources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags )