2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = env.Glob('intern/*.c')
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-19 22:21:45 +00:00
|
|
|
cflags=''
|
2011-02-21 12:35:04 +00:00
|
|
|
incs = '. ../makesdna ../blenkernel #/intern/guardedalloc #/intern/ghost ../editors/include ../gpu ../blenloader'
|
2010-03-11 18:21:17 +00:00
|
|
|
incs += ' ../windowmanager ../bmesh #/extern/glew/include'
|
2010-03-09 04:32:40 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_FREETYPE_INC']
|
|
|
|
|
incs += ' ' + env['BF_ZLIB_INC']
|
2011-02-25 14:45:45 +00:00
|
|
|
defs = []
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2011-02-25 14:45:45 +00:00
|
|
|
if env['WITH_BF_BINRELOC']:
|
2006-02-19 22:21:45 +00:00
|
|
|
cflags='-pthread'
|
2008-01-18 15:10:17 +00:00
|
|
|
incs += ' ../../../extern/binreloc/include'
|
2011-02-25 14:45:45 +00:00
|
|
|
defs.append('WITH_BINRELOC')
|
2006-02-19 22:21:45 +00:00
|
|
|
|
2012-04-24 12:57:58 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
|
2006-02-25 14:53:27 +00:00
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
2012-03-20 02:17:37 +00:00
|
|
|
incs += ' ../../../intern/utfconv'
|
2006-02-25 14:53:27 +00:00
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
if env['OURPLATFORM'] == 'linuxcross':
|
|
|
|
|
if env['WITH_BF_OPENMP']:
|
|
|
|
|
incs += ' ' + env['BF_OPENMP_INC']
|
|
|
|
|
|
2010-03-10 18:05:58 +00:00
|
|
|
if env['OURPLATFORM'] == 'darwin':
|
|
|
|
|
if env['WITH_BF_OPENMP']:
|
|
|
|
|
env.Append(CFLAGS=['-DPARALLEL=1'])
|
|
|
|
|
|
2012-02-22 20:31:19 +00:00
|
|
|
env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [370,230], compileflags =cflags )
|