2008-12-14 11:25:00 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
|
|
|
|
|
|
incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../imbuf'
|
2009-05-14 18:54:41 +00:00
|
|
|
incs += ' ../../blenloader ../../makesrna ../../blenfont'
|
|
|
|
|
incs += ' ../../render/extern/include'
|
2008-12-14 11:25:00 +00:00
|
|
|
incs += ' ../../windowmanager #/intern/guardedalloc #/extern/glew/include'
|
|
|
|
|
|
2009-01-26 08:34:40 +00:00
|
|
|
defs = []
|
|
|
|
|
|
|
|
|
|
if env['WITH_BF_OPENJPEG']:
|
|
|
|
|
defs.append('WITH_OPENJPEG')
|
2010-05-21 03:25:38 +00:00
|
|
|
|
2009-08-16 22:53:15 +00:00
|
|
|
if env['WITH_BF_OPENEXR']:
|
|
|
|
|
defs.append('WITH_OPENEXR')
|
2009-01-26 08:34:40 +00:00
|
|
|
|
2010-05-21 03:25:38 +00:00
|
|
|
if env['WITH_BF_TIFF']:
|
|
|
|
|
defs.append('WITH_TIFF')
|
|
|
|
|
|
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-01-26 08:34:40 +00:00
|
|
|
env.BlenderLib ( 'bf_editors_space_file', sources, Split(incs), defs, libtype=['core'], priority=[115] )
|