copy of docs from 2.4x for python modules that have been kept
[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'
7 incs += ' ../blenlib ../blenfont ../makesdna ../windowmanager'
8 incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
9 incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes'
10 incs += ' #/intern/iksolver/extern ../blenloader'
11 incs += ' #/extern/bullet2/src'
12 incs += ' #/intern/opennl/extern #/intern/bsp/extern'
13 incs += ' ../gpu #/extern/glew/include'
14 incs += ' #/intern/smoke/extern'
15 incs += ' #/intern/audaspace/intern'
16
17 incs += ' ' + env['BF_OPENGL_INC']
18 incs += ' ' + env['BF_ZLIB_INC']
19
20 defs = [ 'GLEW_STATIC' ]
21
22 if not env['WITH_BF_PYTHON']:
23         defs.append('DISABLE_PYTHON')
24 else:
25         incs += ' ../python'
26         incs += ' ' + env['BF_PYTHON_INC']
27         if env['BF_DEBUG']:
28                 defs.append('_DEBUG')
29
30 if env['WITH_BF_QUICKTIME']:
31         incs += ' ../quicktime'
32
33 if env['WITH_BF_SDL']:
34         incs += ' ' + env['BF_SDL_INC']
35 else:
36         defs.append('DISABLE_SDL')
37
38 if env['WITH_BF_OPENEXR']:
39         defs.append('WITH_OPENEXR')
40
41 if env['WITH_BF_OPENJPEG']:
42         defs.append('WITH_OPENJPEG')
43
44 if env['WITH_BF_DDS']:
45         defs.append('WITH_DDS')
46
47 if env['WITH_BF_FFMPEG']:
48         defs.append('WITH_FFMPEG')
49         incs += ' ' + env['BF_FFMPEG_INC']
50
51 if env['WITH_BF_QUICKTIME']:
52         defs.append('WITH_QUICKTIME')
53         incs += ' ' + env['BF_QUICKTIME_INC']
54
55 if env['WITH_BF_BULLET']:
56         defs.append('USE_BULLET')
57
58 if env['BF_NO_ELBEEM']:
59         defs.append('DISABLE_ELBEEM')
60
61 if env['WITH_BF_LCMS']:
62         defs.append('WITH_LCMS')
63
64 if env['WITH_BF_LZO']:
65         incs += ' #/extern/lzo/minilzo'
66         defs.append('WITH_LZO')
67
68 if env['WITH_BF_LZMA']:
69         incs += ' #/extern/lzma'
70         defs.append('WITH_LZMA')
71
72 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
73     incs += ' ' + env['BF_PTHREADS_INC']
74
75 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25] )