svn merge ^/trunk/blender -r43009:43033
[blender.git] / source / blender / modifiers / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('intern/*.c')
5
6 incs = '. ./intern'
7 incs += ' #/intern/guardedalloc #/intern/decimation/extern #/intern/bsp/extern #/intern/elbeem/extern #/extern/glew/include'
8 incs += ' ../render/extern/include ../blenloader ../bmesh'
9 incs += ' ../include ../blenlib ../makesdna ../makesrna ../blenkernel ../blenkernel/intern'
10 incs += ' ../gpu'
11
12 incs += ' ' + env['BF_ZLIB_INC']
13
14 defs = []
15
16 if env ['WITH_BF_BOOLEAN']:
17     incs += ' #/intern/dualcon'
18     defs.append('WITH_MOD_BOOLEAN')
19
20 if env['WITH_BF_REMESH']:
21     defs.append('WITH_MOD_REMESH')
22
23 if env ['WITH_BF_DECIMATE']:
24     defs.append('WITH_MOD_DECIMATE')
25
26 if env['WITH_BF_FLUID']:
27     defs.append('WITH_MOD_FLUID')
28
29 if env['WITH_BF_OCEANSIM']:
30     defs.append('WITH_OCEANSIM')
31
32 if env['WITH_BF_GAMEENGINE']:
33     incs += ' #/extern/recastnavigation'
34     defs.append('WITH_GAMEENGINE')
35
36 env.BlenderLib ( libname = 'bf_modifiers', sources = sources,
37                  includes = Split(incs), defines=defs,
38                  libtype=['core','player'], priority = [80, 40] )