Filling in branch from trunk
[blender.git] / source / blender / python / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = Split('BPY_interface.c BPY_menus.c') + env.Glob('api2_2x/*.c')
5
6 incs = 'api2_2x ../blenkernel ../blenlib ../blenloader'
7 incs += ' ../render/extern/include ../radiosity/extern/include'
8 incs += ' ../makesdna #intern/guardedalloc #intern/bmfont ../imbuf ../include'
9 incs += ' ' + env['BF_PYTHON_INC']
10 incs += ' ' + env['BF_OPENGL_INC']
11
12 defs = []
13 if env['OURPLATFORM'] in ('win32-mingw') and env['BF_DEBUG']:
14         defs.append('Py_TRACE_REFS')
15
16 if env['WITH_BF_QUICKTIME']==1:
17         incs += ' ' + env['BF_QUICKTIME_INC']
18         defs.append('WITH_QUICKTIME')
19         
20 if env['WITH_BF_OPENEXR'] == 1:
21     defs.append('WITH_OPENEXR')
22
23 if env['WITH_BF_FFMPEG'] == 1:
24     defs.append('WITH_FFMPEG')
25
26 env.BlenderLib ( libname='blender_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype=['core','game2'], priority = [60,115] )