small merge needed for testing new animsys in 2.5 BGE, mixing own changes with merge...
[blender.git] / source / creator / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = 'creator.c'
5
6 incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
7 incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
8 incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
9 incs += ' ../blender/makesdna ../blender/makesrna ../kernel/gen_messaging'
10 incs += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu'
11 incs += ' ' + env['BF_OPENGL_INC']
12
13 defs = []
14 if env['WITH_BF_QUICKTIME']:
15         incs += ' ' + env['BF_QUICKTIME_INC']
16         defs.append('WITH_QUICKTIME')
17
18 if env['WITH_BF_BINRELOC']:
19         incs += ' ../../extern/binreloc/include'
20         defs.append('WITH_BINRELOC')
21
22 if env['WITH_BF_OPENEXR']:
23         defs.append('WITH_OPENEXR')
24
25 if not env['WITH_BF_SDL']:
26         defs.append('DISABLE_SDL')
27
28 if env['WITH_BF_PYTHON']:
29         incs += ' ../blender/python'
30         if env['BF_DEBUG']:
31                 defs.append('_DEBUG')
32 else:
33         defs.append('DISABLE_PYTHON')
34
35 env.BlenderLib ( libname = 'bf_creator', sources = Split(sources), includes = Split(incs), defines = defs, libtype='core', priority = 0 )