Merge with -r 22620:23107.
[blender.git] / source / creator / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = ['creator.c']
5
6 # if env['BF_UNIT_TEST']:
7 #       sources += env.Glob('tests/*.c')
8
9 incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
10 incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
11 incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
12 incs += ' ../blender/makesdna ../blender/makesrna ../kernel/gen_messaging'
13 incs += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu'
14 incs += ' ' + env['BF_OPENGL_INC']
15
16 defs = []
17
18 if env['WITH_BF_QUICKTIME']:
19         incs += ' ' + env['BF_QUICKTIME_INC']
20         defs.append('WITH_QUICKTIME')
21
22 if env['WITH_BF_BINRELOC']:
23         incs += ' ../../extern/binreloc/include'
24         defs.append('WITH_BINRELOC')
25
26 if env['WITH_BF_OPENEXR']:
27         defs.append('WITH_OPENEXR')
28
29 if not env['WITH_BF_SDL']:
30         defs.append('DISABLE_SDL')
31
32 if env['WITH_BF_PYTHON']:
33         incs += ' ../blender/python'
34         if env['BF_DEBUG']:
35                 defs.append('_DEBUG')
36 else:
37         defs.append('DISABLE_PYTHON')
38
39 # if env['BF_UNIT_TEST']:
40 #       defs.append('UNIT_TEST')
41
42 env.BlenderLib ( libname = 'bf_creator', sources = sources, includes = Split(incs), defines = defs, libtype='core', priority = 0 )