2010-04-11 22:12:30 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
2011-09-20 16:24:50 +00:00
|
|
|
sources = env.Glob('intern/*.c')
|
2010-04-11 22:12:30 +00:00
|
|
|
|
|
|
|
|
incs = '. ./intern'
|
2012-10-24 10:39:11 +00:00
|
|
|
incs += ' #/intern/guardedalloc #/intern/bsp/extern #/intern/elbeem/extern #/extern/glew/include #/intern/opennl/extern'
|
2011-03-17 23:30:29 +00:00
|
|
|
incs += ' ../render/extern/include ../blenloader ../bmesh'
|
2012-03-17 12:07:58 +00:00
|
|
|
incs += ' ../include ../blenlib ../blenfont ../makesdna ../makesrna ../blenkernel ../blenkernel/intern'
|
2011-09-11 14:13:04 +00:00
|
|
|
incs += ' ../gpu'
|
2010-04-11 22:12:30 +00:00
|
|
|
|
|
|
|
|
incs += ' ' + env['BF_ZLIB_INC']
|
|
|
|
|
|
2010-04-15 10:28:32 +00:00
|
|
|
defs = []
|
|
|
|
|
|
2011-10-29 23:56:07 +00:00
|
|
|
if env ['WITH_BF_BOOLEAN']:
|
|
|
|
|
defs.append('WITH_MOD_BOOLEAN')
|
2010-10-23 15:40:13 +00:00
|
|
|
|
2011-12-31 03:34:44 +00:00
|
|
|
if env['WITH_BF_REMESH']:
|
2012-01-03 04:03:41 +00:00
|
|
|
incs += ' #/intern/dualcon'
|
2011-12-31 03:34:44 +00:00
|
|
|
defs.append('WITH_MOD_REMESH')
|
|
|
|
|
|
2011-10-29 23:56:07 +00:00
|
|
|
if env['WITH_BF_FLUID']:
|
|
|
|
|
defs.append('WITH_MOD_FLUID')
|
2010-04-11 22:12:30 +00:00
|
|
|
|
2011-11-13 12:17:27 +00:00
|
|
|
if env['WITH_BF_OCEANSIM']:
|
|
|
|
|
defs.append('WITH_OCEANSIM')
|
|
|
|
|
|
2011-09-11 14:13:04 +00:00
|
|
|
if env['WITH_BF_GAMEENGINE']:
|
2011-09-20 16:24:50 +00:00
|
|
|
incs += ' #/extern/recastnavigation'
|
2011-09-11 14:13:04 +00:00
|
|
|
defs.append('WITH_GAMEENGINE')
|
|
|
|
|
|
2012-03-17 12:07:58 +00:00
|
|
|
if env['WITH_BF_INTERNATIONAL']:
|
|
|
|
|
defs.append('WITH_INTERNATIONAL')
|
|
|
|
|
|
2010-09-07 05:47:34 +00:00
|
|
|
env.BlenderLib ( libname = 'bf_modifiers', sources = sources,
|
2010-04-15 10:28:32 +00:00
|
|
|
includes = Split(incs), defines=defs,
|
2011-02-14 21:00:49 +00:00
|
|
|
libtype=['core','player'], priority = [80, 40] )
|