2008-12-30 13:16:14 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
|
|
2011-09-27 09:40:53 +00:00
|
|
|
defs = []
|
|
|
|
|
|
2008-12-30 13:16:14 +00:00
|
|
|
incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../imbuf'
|
|
|
|
|
incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
|
2011-02-21 12:35:04 +00:00
|
|
|
incs += ' ../../gpu ../../blenloader'
|
2008-12-30 13:16:14 +00:00
|
|
|
incs += ' ../../makesrna ../../render/extern/include #/intern/elbeem/extern'
|
2011-03-20 15:39:08 +00:00
|
|
|
incs += ' ../../bmesh ../uvedit '
|
2008-12-30 13:16:14 +00:00
|
|
|
|
2011-08-21 13:31:46 +00:00
|
|
|
if env['OURPLATFORM'] == 'linux':
|
2009-10-22 23:22:05 +00:00
|
|
|
cflags='-pthread'
|
|
|
|
|
incs += ' ../../../extern/binreloc/include'
|
|
|
|
|
|
2012-04-24 12:57:58 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
|
2009-10-22 23:22:05 +00:00
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
|
2011-09-27 09:09:52 +00:00
|
|
|
if env['WITH_BF_GAMEENGINE']:
|
|
|
|
|
incs += ' #/extern/recastnavigation'
|
|
|
|
|
defs.append('WITH_GAMEENGINE')
|
|
|
|
|
else:
|
|
|
|
|
sources.remove('mesh_navmesh.c')
|
|
|
|
|
|
2011-09-27 09:40:53 +00:00
|
|
|
env.BlenderLib ( 'bf_editors_mesh', sources, Split(incs), defs, libtype=['core'], priority=[45] )
|