svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22205:22290
[blender.git] / source / blender / blenkernel / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('intern/*.c')
5
6 incs = '. #/intern/guardedalloc #/intern/memutil ../editors/include ../blenlib ../makesdna'
7 incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
8 incs += ' ../imbuf ../avi #/intern/elbeem/extern ../nodes'
9 incs += ' #/intern/iksolver/extern ../blenloader'
10 incs += ' #/extern/bullet2/src'
11 incs += ' #/intern/opennl/extern #/intern/bsp/extern'
12 incs += ' ../gpu #/extern/glew/include'
13 incs += ' #/intern/smoke/extern'
14
15 incs += ' ' + env['BF_OPENGL_INC']
16 incs += ' ' + env['BF_ZLIB_INC']
17
18 defs = []
19
20 if not env['WITH_BF_PYTHON']:
21         defs.append('DISABLE_PYTHON')
22 else:
23         incs += ' ../python'
24         incs += ' ' + env['BF_PYTHON_INC']
25         if env['BF_DEBUG']:
26                 defs.append('_DEBUG')
27
28 if env['WITH_BF_QUICKTIME']:
29         incs += ' ../quicktime'
30
31 if env['WITH_BF_SDL']:
32         incs += ' ' + env['BF_SDL_INC']
33 else:
34         defs.append('DISABLE_SDL')
35
36 if env['WITH_BF_OPENEXR']:
37         defs.append('WITH_OPENEXR')
38
39 if env['WITH_BF_OPENJPEG']:
40         defs.append('WITH_OPENJPEG')
41
42 if env['WITH_BF_DDS']:
43         defs.append('WITH_DDS')
44
45 if env['WITH_BF_FFMPEG']:
46         defs.append('WITH_FFMPEG')
47         incs += ' ' + env['BF_FFMPEG_INC']
48
49 if env['WITH_BF_QUICKTIME']:
50         defs.append('WITH_QUICKTIME')
51         incs += ' ' + env['BF_QUICKTIME_INC']
52
53 if env['WITH_BF_BULLET']:
54         defs.append('WITH_BULLET')
55
56 if env['BF_NO_ELBEEM']:
57         defs.append('DISABLE_ELBEEM')
58
59 if env['WITH_BF_LCMS']:
60         defs.append('WITH_LCMS')
61         
62 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
63     incs += ' ' + env['BF_PTHREADS_INC']
64
65 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core'], priority = [165] )