Ocean Sim modifier patch
[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'
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     defs.append('WITH_MOD_BOOLEAN')
18
19 if env ['WITH_BF_DECIMATE']:
20     defs.append('WITH_MOD_DECIMATE')
21
22 if env['WITH_BF_FLUID']:
23     defs.append('WITH_MOD_FLUID')
24
25 if env['WITH_BF_OCEANSIM']:
26     defs.append('WITH_OCEANSIM')
27
28 if env['WITH_BF_GAMEENGINE']:
29     incs += ' #/extern/recastnavigation'
30     defs.append('WITH_GAMEENGINE')
31
32 env.BlenderLib ( libname = 'bf_modifiers', sources = sources,
33                  includes = Split(incs), defines=defs,
34                  libtype=['core','player'], priority = [80, 40] )