* WITH_BF_GETTEXT and WITH_BF_FREETYPE are merged into WITH_BF_INTERNATIONAL
[blender-staging.git] / source / blender / blenkernel / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('intern/*.c')
5
6 incs = '. #/intern/guardedalloc ../include ../blenlib ../makesdna'
7 incs += ' ../python ../render/extern/include #/intern/decimation/extern'
8 incs += ' ../imbuf ../avi #/intern/elbeem/extern'
9 incs += ' #/intern/iksolver/extern ../blenloader ../quicktime'
10
11 incs += ' ' + env['BF_OPENGL_INC']
12 incs += ' ' + env['BF_ZLIB_INC']
13 incs += ' ' + env['BF_SDL_INC']
14
15 defs = ''
16
17 if env['WITH_BF_INTERNATIONAL'] == 1:
18     defs += 'WITH_FREETYPE2'
19
20 if env['WITH_BF_OPENEXR'] == 1:
21     defs += ' WITH_OPENEXR'
22
23 if env['WITH_BF_QUICKTIME'] == 1:
24     defs += ' WITH_QUICKTIME'
25     incs += ' ' + env['BF_QUICKTIME_INC']
26
27 defs += ' WITH_CCGSUBSURF'
28
29 if env['WITH_BF_PLAYER']:
30     SConscript(['bad_level_call_stubs/SConscript'])
31
32 env.BlenderLib ( libname = 'blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype='core', priority = 65 )