merged changes to revision 24077
[blender.git] / source / creator / SConscript
1 #!/usr/bin/python
2 Import ('env')
3 import os
4
5 sources = 'creator.c'
6
7 incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
8 incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
9 incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
10 incs += ' ../blender/makesdna ../blender/makesrna ../kernel/gen_messaging'
11 incs += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu ../blender/freestyle'
12 incs += ' ' + env['BF_OPENGL_INC']
13
14 defs = []
15 if env['WITH_BF_QUICKTIME']:
16         incs += ' ' + env['BF_QUICKTIME_INC']
17         defs.append('WITH_QUICKTIME')
18
19 if env['WITH_BF_BINRELOC']:
20         incs += ' ../../extern/binreloc/include'
21         defs.append('WITH_BINRELOC')
22
23 if env['WITH_BF_OPENEXR']:
24         defs.append('WITH_OPENEXR')
25
26 if not env['WITH_BF_SDL']:
27         defs.append('DISABLE_SDL')
28
29 if env['WITH_BF_PYTHON']:
30         incs += ' ../blender/python'
31         if env['BF_DEBUG']:
32                 defs.append('_DEBUG')
33 else:
34         defs.append('DISABLE_PYTHON')
35
36 if env['WITH_BF_FHS']: # /usr -> /usr/share/blender/2.5
37         defs.append('BLENDERPATH=\\"' + os.path.join(env['BF_INSTALLDIR'], 'share', 'blender', env['BF_VERSION']) + '\\"')
38         
39 if env['BF_BUILDINFO']:
40         defs.append('BUILD_DATE')
41
42 env.BlenderLib ( libname = 'bf_creator', sources = Split(sources), includes = Split(incs), defines = defs, libtype='core', priority = 0 )