2007-12-29 18:05:24 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
2008-01-08 05:57:27 +00:00
|
|
|
sources = env.Glob('*.c')
|
2007-12-29 18:05:24 +00:00
|
|
|
|
2009-05-05 23:25:12 +00:00
|
|
|
incs = '../include ../../blenlib ../../blenkernel ../../blenfont ../../makesdna ../../imbuf'
|
2009-10-28 18:03:04 +00:00
|
|
|
incs += ' ../../blenloader ../../windowmanager ../../python ../../makesrna ../../gpu'
|
2009-02-04 17:40:50 +00:00
|
|
|
incs += ' ../../render/extern/include'
|
2009-05-05 23:10:32 +00:00
|
|
|
incs += ' #/intern/guardedalloc #/extern/glew/include'
|
2008-01-08 05:57:27 +00:00
|
|
|
|
2008-11-24 21:57:58 +00:00
|
|
|
defs = ''
|
|
|
|
|
|
|
|
|
|
if not env['WITH_BF_PYTHON']:
|
|
|
|
|
defs += 'DISABLE_PYTHON'
|
2009-08-16 22:53:15 +00:00
|
|
|
if env['WITH_BF_OPENEXR']:
|
|
|
|
|
defs += ' WITH_OPENEXR'
|
2008-11-24 21:57:58 +00:00
|
|
|
|
2009-10-01 16:32:33 +00:00
|
|
|
if env['OURPLATFORM'] == 'linux2':
|
|
|
|
|
cflags='-pthread'
|
|
|
|
|
incs += ' ../../../extern/binreloc/include'
|
|
|
|
|
|
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
|
2009-12-17 17:05:28 +00:00
|
|
|
if env['OURPLATFORM'] == 'darwin':
|
|
|
|
|
if env['WITH_BF_OPENMP']:
|
|
|
|
|
defs += ' PARALLEL=1'
|
|
|
|
|
|
2008-12-23 21:20:34 +00:00
|
|
|
env.BlenderLib ( 'bf_editors_screen', sources, Split(incs), Split(defs), libtype=['core'], priority=[105] )
|