Improvements of Freestyle GUI controls - Part 1.
[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 ../freestyle'
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     incs += ' #/extern/eltopo/eltopo3d'
46     defs.append('WITH_ELTOPO')
47         
48 if env['WITH_BF_QUICKTIME']:
49     incs += ' ../quicktime'
50
51 if env['WITH_BF_SDL']:
52     incs += ' ' + env['BF_SDL_INC']
53     defs.append('WITH_SDL')
54
55 if env['WITH_BF_OPENEXR']:
56     defs.append('WITH_OPENEXR')
57
58 if env['WITH_BF_TIFF']:
59     defs.append('WITH_TIFF')
60
61 if env['WITH_BF_OPENJPEG']:
62     defs.append('WITH_OPENJPEG')
63
64 if env['WITH_BF_DDS']:
65     defs.append('WITH_DDS')
66
67 if env['WITH_BF_CINEON']:
68     defs.append('WITH_CINEON')
69
70 if env['WITH_BF_HDR']:
71     defs.append('WITH_HDR')
72
73 if env['WITH_BF_JACK']:
74     defs.append('WITH_JACK')
75
76 if env['WITH_BF_FFMPEG']:
77     defs.append('WITH_FFMPEG')
78     incs += ' ' + env['BF_FFMPEG_INC']
79
80 if env['WITH_BF_QUICKTIME']:
81     defs.append('WITH_QUICKTIME')
82     incs += ' ' + env['BF_QUICKTIME_INC']
83
84 if env['WITH_BF_BULLET']:
85     defs.append('USE_BULLET')
86
87 if env['OURPLATFORM'] == 'darwin':
88     if env['WITH_BF_OPENMP']:
89        defs.append('PARALLEL=1')
90
91 if env['WITH_BF_FLUID']:
92     defs.append('WITH_MOD_FLUID')
93
94 if env['WITH_BF_OCEANSIM']:
95     defs.append('WITH_OCEANSIM')
96
97 if env['WITH_BF_LZO']:
98     incs += ' #/extern/lzo/minilzo'
99     defs.append('WITH_LZO')
100
101 if env['WITH_BF_LZMA']:
102     incs += ' #/extern/lzma'
103     defs.append('WITH_LZMA')
104
105 if env['WITH_BF_GAMEENGINE']:
106     incs += ' #/extern/recastnavigation'
107     defs.append('WITH_GAMEENGINE')
108 else:
109     sources.remove('intern' + os.sep + 'navmesh_conversion.c')
110
111 if env['WITH_BF_LIBMV']:
112     incs += ' #/extern/libmv'
113     defs.append('WITH_LIBMV')
114
115 if env['WITH_BF_FFTW3']:
116     defs.append('FFTW3=1')
117     incs += ' ' + env['BF_FFTW3_INC'] 
118
119 if env['WITH_BF_INTERNATIONAL']:
120     defs.append('WITH_INTERNATIONAL')
121
122 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
123     incs += ' ' + env['BF_PTHREADS_INC']
124
125
126 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
127     env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25]) #, cc_compileflags = env['CCFLAGS'].append('/WX') )
128 else:
129     env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [166,25,0] )
130
131 env.BlenderLib ( libname = 'bf_blenkernel_mask', sources = sources_mask, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [200,25,0] )