== Inpaint Node ==
[blender.git] / source / blender / blenkernel / SConscript
1 #!/usr/bin/python
2 Import ('env')
3 import os
4
5 sources = env.Glob('intern/*.c')
6 sources.remove('intern' + os.sep + 'mask_rasterize.c')
7 sources.remove('intern' + os.sep + 'mask.c')
8
9 sources_mask = env.Glob('intern/mask*.c')
10
11 incs = '. #/intern/guardedalloc #/intern/memutil'
12 incs += ' ../blenlib ../blenfont ../makesdna ../windowmanager'
13 incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
14 incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes ../modifiers'
15 incs += ' #/intern/iksolver/extern ../blenloader'
16 incs += ' #/extern/bullet2/src'
17 incs += ' #/intern/opennl/extern #/intern/bsp/extern'
18 incs += ' ../gpu #/extern/glew/include'
19 incs += ' ../bmesh'
20 incs += ' #/intern/smoke/extern'
21 incs += ' #/intern/mikktspace'
22 incs += ' #/intern/audaspace/intern'
23 incs += ' #/intern/ffmpeg'
24 incs += ' #/intern/raskter'
25
26 incs += ' ' + env['BF_OPENGL_INC']
27 incs += ' ' + env['BF_ZLIB_INC']
28
29 defs = [ 'GLEW_STATIC' ]
30
31 if env['WITH_BF_SMOKE']:
32     defs.append('WITH_SMOKE')
33
34 if env['WITH_BF_FRAMESERVER']:
35     defs.append('WITH_FRAMESERVER')
36
37 if env['WITH_BF_PYTHON']:
38     incs += ' ../python'
39     defs.append('WITH_PYTHON')
40     if env['BF_DEBUG']:
41         defs.append('DEBUG')
42
43 if env['WITH_BF_ELTOPO']:
44     incs += ' ../../../extern/eltopo'
45     defs.append('WITH_ELTOPO')
46         
47 if env['WITH_BF_QUICKTIME']:
48     incs += ' ../quicktime'
49
50 if env['WITH_BF_SDL']:
51     incs += ' ' + env['BF_SDL_INC']
52     defs.append('WITH_SDL')
53
54 if env['WITH_BF_OPENEXR']:
55     defs.append('WITH_OPENEXR')
56
57 if env['WITH_BF_TIFF']:
58     defs.append('WITH_TIFF')
59
60 if env['WITH_BF_OPENJPEG']:
61     defs.append('WITH_OPENJPEG')
62
63 if env['WITH_BF_DDS']:
64     defs.append('WITH_DDS')
65
66 if env['WITH_BF_CINEON']:
67     defs.append('WITH_CINEON')
68
69 if env['WITH_BF_HDR']:
70     defs.append('WITH_HDR')
71
72 if env['WITH_BF_JACK']:
73     defs.append('WITH_JACK')
74
75 if env['WITH_BF_FFMPEG']:
76     defs.append('WITH_FFMPEG')
77     incs += ' ' + env['BF_FFMPEG_INC']
78
79 if env['WITH_BF_QUICKTIME']:
80     defs.append('WITH_QUICKTIME')
81     incs += ' ' + env['BF_QUICKTIME_INC']
82
83 if env['WITH_BF_BULLET']:
84     defs.append('USE_BULLET')
85
86 if env['OURPLATFORM'] == 'darwin':
87     if env['WITH_BF_OPENMP']:
88        defs.append('PARALLEL=1')
89
90 if env['WITH_BF_FLUID']:
91     defs.append('WITH_MOD_FLUID')
92
93 if env['WITH_BF_OCEANSIM']:
94     defs.append('WITH_OCEANSIM')
95
96 if env['WITH_BF_LZO']:
97     incs += ' #/extern/lzo/minilzo'
98     defs.append('WITH_LZO')
99
100 if env['WITH_BF_LZMA']:
101     incs += ' #/extern/lzma'
102     defs.append('WITH_LZMA')
103
104 if env['WITH_BF_GAMEENGINE']:
105     incs += ' #/extern/recastnavigation'
106     defs.append('WITH_GAMEENGINE')
107 else:
108     sources.remove('intern' + os.sep + 'navmesh_conversion.c')
109
110 if env['WITH_BF_LIBMV']:
111     incs += ' #/extern/libmv'
112     defs.append('WITH_LIBMV')
113
114 if env['WITH_BF_FFTW3']:
115     defs.append('FFTW3=1')
116     incs += ' ' + env['BF_FFTW3_INC'] 
117
118 if env['WITH_BF_INTERNATIONAL']:
119     defs.append('WITH_INTERNATIONAL')
120
121 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
122     incs += ' ' + env['BF_PTHREADS_INC']
123
124
125 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
126     env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25]) #, cc_compileflags = env['CCFLAGS'].append('/WX') )
127 else:
128     env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [166,25,0] )
129
130 env.BlenderLib ( libname = 'bf_blenkernel_mask', sources = sources_mask, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [200,25,0] )