Finally change SConscript tabs to spaces.
[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 ../modifiers'
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_TIFF']:
42     defs.append('WITH_TIFF')
43
44 if env['WITH_BF_OPENJPEG']:
45     defs.append('WITH_OPENJPEG')
46
47 if env['WITH_BF_DDS']:
48     defs.append('WITH_DDS')
49
50 if env['WITH_BF_CINEON']:
51     defs.append('WITH_CINEON')
52
53 if env['WITH_BF_HDR']:
54     defs.append('WITH_HDR')
55
56 if env['WITH_BF_FFMPEG']:
57     defs.append('WITH_FFMPEG')
58     incs += ' ' + env['BF_FFMPEG_INC']
59
60 if env['WITH_BF_QUICKTIME']:
61     defs.append('WITH_QUICKTIME')
62     incs += ' ' + env['BF_QUICKTIME_INC']
63
64 if env['WITH_BF_BULLET']:
65     defs.append('USE_BULLET')
66
67 if env['OURPLATFORM'] == 'darwin':
68     if env['WITH_BF_OPENMP']:
69        defs.append('PARALLEL=1')
70
71 if env['BF_NO_ELBEEM']:
72     defs.append('DISABLE_ELBEEM')
73
74 if env['WITH_BF_LCMS']:
75     defs.append('WITH_LCMS')
76     incs += ' ' + env['BF_LCMS_INC']
77
78 if env['WITH_BF_LZO']:
79     incs += ' #/extern/lzo/minilzo'
80     defs.append('WITH_LZO')
81
82 if env['WITH_BF_LZMA']:
83     incs += ' #/extern/lzma'
84     defs.append('WITH_LZMA')
85
86 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
87     incs += ' ' + env['BF_PTHREADS_INC']
88
89 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25] )