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-04 14:15:10 +00:00
|
|
|
incs = '. #/intern/guardedalloc ../include ../blenlib ../makesdna'
|
|
|
|
|
incs += ' ../python ../render/extern/include #/intern/decimation/extern'
|
2007-03-24 18:41:54 +00:00
|
|
|
incs += ' ../imbuf ../avi #/intern/elbeem/extern ../nodes'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' #/intern/iksolver/extern ../blenloader ../quicktime'
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
|
|
|
|
incs += ' ' + env['BF_ZLIB_INC']
|
|
|
|
|
incs += ' ' + env['BF_SDL_INC']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = ''
|
2004-02-23 14:39:08 +00:00
|
|
|
|
2006-10-01 12:39:31 +00:00
|
|
|
if env['WITH_BF_INTERNATIONAL']:
|
|
|
|
|
defs += 'WITH_FREETYPE2'
|
|
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
if env['WITH_BF_VERSE']:
|
|
|
|
|
defs += ' WITH_VERSE'
|
|
|
|
|
incs += ' ' + env['BF_VERSE_INCLUDE']
|
2005-03-22 07:45:20 +00:00
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
if env['WITH_BF_VERSE']:
|
|
|
|
|
defs += ' WITH_VERSE'
|
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if env['WITH_BF_OPENEXR'] == 1:
|
|
|
|
|
defs += ' WITH_OPENEXR'
|
2004-06-04 12:58:46 +00:00
|
|
|
|
2007-06-25 19:50:25 +00:00
|
|
|
if env['WITH_BF_DDS'] == 1:
|
|
|
|
|
defs += ' WITH_DDS'
|
|
|
|
|
|
2006-02-05 19:12:25 +00:00
|
|
|
if env['WITH_BF_FFMPEG'] == 1:
|
|
|
|
|
defs += ' WITH_FFMPEG'
|
2006-08-14 12:47:13 +00:00
|
|
|
incs += ' ' + env['BF_FFMPEG_INC']
|
2006-02-05 19:12:25 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if env['WITH_BF_QUICKTIME'] == 1:
|
|
|
|
|
defs += ' WITH_QUICKTIME'
|
|
|
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
2005-04-05 15:02:21 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
defs += ' WITH_CCGSUBSURF'
|
|
|
|
|
|
|
|
|
|
if env['WITH_BF_PLAYER']:
|
|
|
|
|
SConscript(['bad_level_call_stubs/SConscript'])
|
|
|
|
|
|
2006-02-07 21:24:36 +00:00
|
|
|
env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype=['core','player'], priority = [65, 20] )
|