svn merge -r 16593:16648 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender-staging.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 ../nodes ../blenlib ../blenloader'
7 incs += ' ../render/extern/include ../radiosity/extern/include'
8 incs += ' ../makesdna #intern/guardedalloc #intern/bmfont ../imbuf ../include'
9 incs += ' #extern/glew/include ../gpu'
10 incs += ' ' + env['BF_PYTHON_INC']
11 incs += ' ' + env['BF_OPENGL_INC']
12
13 defs = []
14 if env['OURPLATFORM'] in ('win32-mingw') and env['BF_DEBUG']:
15         defs.append('Py_TRACE_REFS')
16
17 if env['WITH_BF_QUICKTIME']==1:
18         incs += ' ' + env['BF_QUICKTIME_INC']
19         defs.append('WITH_QUICKTIME')
20         
21 if env['WITH_BF_OPENEXR'] == 1:
22     defs.append('WITH_OPENEXR')
23
24 if env['WITH_BF_FFMPEG'] == 1:
25     defs.append('WITH_FFMPEG')
26
27 if env['BF_BUILDINFO'] == 1:
28     defs.append('NAN_BUILDINFO')
29
30 env.BlenderLib ( libname='blender_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype=['core','game2'], priority = [60,115] )