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=''
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = '. ../makesdna ../blenkernel #/intern/guardedalloc ../include'
|
|
|
|
|
incs += ' ' + env['BF_FREETYPE_INC']
|
|
|
|
|
incs += ' ' + env['BF_ZLIB_INC']
|
|
|
|
|
defs = ''
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2008-11-11 14:14:22 +00:00
|
|
|
if env['WITH_BF_SDL']:
|
|
|
|
|
incs += ' ' + env['BF_SDL_INC']
|
|
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_INTERNATIONAL']:
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = 'WITH_FREETYPE2'
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
if env['WITH_BF_VERSE']:
|
|
|
|
|
defs += ' WITH_VERSE'
|
|
|
|
|
incs += ' ' + env['BF_VERSE_INCLUDE']
|
|
|
|
|
|
2006-02-19 22:21:45 +00:00
|
|
|
if env['OURPLATFORM'] == 'linux2':
|
|
|
|
|
cflags='-pthread'
|
2008-01-18 15:10:17 +00:00
|
|
|
incs += ' ../../../extern/binreloc/include'
|
2006-02-19 22:21:45 +00:00
|
|
|
|
2008-11-13 23:12:38 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross'):
|
2006-02-25 14:53:27 +00:00
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
|
2008-09-05 06:05:25 +00:00
|
|
|
env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core', 'intern', 'player'], priority = [85,150,195], compileflags =cflags )
|