svn merge -r 22571:22800 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender-staging.git] / source / blender / render / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 cflags = ['-msse2','-mfpmath=sse']
5 cxxflags = ['-msse2','-mfpmath=sse']
6 sources = env.Glob('intern/source/*.c')
7 raysources = env.Glob('intern/raytrace/*.cpp')
8
9 incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna ../makesrna'
10 incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
11 incs += ' ../include ../blenloader ../../../intern/smoke/extern'
12
13 defs = []
14
15 if env['WITH_BF_QUICKTIME']:
16     defs.append('WITH_QUICKTIME')
17     incs += ' ../quicktime ' + env['BF_QUICKTIME_INC']
18
19 if env['WITH_BF_FFMPEG']:
20     defs.append('WITH_FFMPEG')
21
22 if env['WITH_BF_OPENEXR']:
23     defs.append('WITH_OPENEXR')
24
25 if env['OURPLATFORM']=='linux2':
26     cflags += ['-pthread']
27
28 env.BlenderLib ( libname = 'bf_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags )
29 env.BlenderLib ( libname = 'bf_render_raytrace', sources = raysources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags, cxx_compileflags=cxxflags )