2008-12-13 18:09:49 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
|
|
2008-12-28 00:08:34 +00:00
|
|
|
incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../makesrna ../../imbuf'
|
2009-05-05 23:10:32 +00:00
|
|
|
incs += ' ../../nodes ../../render/extern/include'
|
2008-12-23 16:07:24 +00:00
|
|
|
incs += ' ../../windowmanager #intern/guardedalloc #extern/glew/include'
|
|
|
|
|
defs = []
|
|
|
|
|
cf = []
|
2009-07-16 19:41:28 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
2008-12-29 00:55:23 +00:00
|
|
|
#cf.append('/WX')
|
|
|
|
|
pass
|
2008-12-26 18:00:38 +00:00
|
|
|
if env['CC'] == 'gcc':
|
2008-12-28 00:42:01 +00:00
|
|
|
#cf.append('-Werror')
|
|
|
|
|
pass
|
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']
|
|
|
|
|
|
2008-12-23 21:20:34 +00:00
|
|
|
env.BlenderLib ( 'bf_editors_space_node', sources, Split(incs), defs, libtype=['core'], priority=[55], compileflags=cf )
|