Various fixes in rna_*_api.c files to remove compiler warnings.
[blender.git] / source / creator / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = ['creator.c']
5
6 if env['WITH_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_UNIT_TEST']:
19         defs.append('WITH_UNIT_TEST')
20
21 if env['WITH_BF_QUICKTIME']:
22         incs += ' ' + env['BF_QUICKTIME_INC']
23         defs.append('WITH_QUICKTIME')
24
25 if env['WITH_BF_BINRELOC']:
26         incs += ' ../../extern/binreloc/include'
27         defs.append('WITH_BINRELOC')
28
29 if env['WITH_BF_OPENEXR']:
30         defs.append('WITH_OPENEXR')
31
32 if not env['WITH_BF_SDL']:
33         defs.append('DISABLE_SDL')
34
35 if env['WITH_BF_PYTHON']:
36         incs += ' ../blender/python'
37         if env['BF_DEBUG']:
38                 defs.append('_DEBUG')
39 else:
40         defs.append('DISABLE_PYTHON')
41
42 env.BlenderLib ( libname = 'bf_creator', sources = sources, includes = Split(incs), defines = defs, libtype='core', priority = 0 )