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']:
|
2010-08-29 20:52:05 +00:00
|
|
|
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']:
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('WITH_TIFF')
|
2010-05-21 03:25:38 +00:00
|
|
|
|
2012-03-17 12:07:58 +00:00
|
|
|
if env['WITH_BF_INTERNATIONAL']:
|
|
|
|
|
defs.append('WITH_INTERNATIONAL')
|
|
|
|
|
|
2011-08-21 13:31:46 +00:00
|
|
|
if env['OURPLATFORM'] == 'linux':
|
2009-10-01 16:32:33 +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-01 16:32:33 +00:00
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
2012-04-24 12:57:58 +00:00
|
|
|
|
2009-01-26 08:34:40 +00:00
|
|
|
env.BlenderLib ( 'bf_editors_space_file', sources, Split(incs), defs, libtype=['core'], priority=[115] )
|