2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = Split('BPY_interface.c BPY_menus.c') + env.Glob('api2_2x/*.c')
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = 'api2_2x ../blenkernel ../blenlib ../blenloader'
|
|
|
|
|
incs += ' ../render/extern/include ../radiosity/extern/include'
|
|
|
|
|
incs += ' ../makesdna #intern/guardedalloc #intern/bmfont ../imbuf ../include'
|
|
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
|
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = []
|
2006-12-04 14:32:07 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-mingw') and env['BF_DEBUG']:
|
|
|
|
|
defs.append('Py_TRACE_REFS')
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if env['WITH_BF_QUICKTIME']==1:
|
|
|
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
|
|
|
|
defs.append('WITH_QUICKTIME')
|
2006-02-07 19:04:24 +00:00
|
|
|
|
|
|
|
|
if env['WITH_BF_OPENEXR'] == 1:
|
|
|
|
|
defs.append('WITH_OPENEXR')
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2007-07-09 16:03:26 +00:00
|
|
|
if env['WITH_BF_FFMPEG'] == 1:
|
|
|
|
|
defs.append('WITH_FFMPEG')
|
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
env.BlenderLib ( libname='blender_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype=['core','game2'], priority = [60,115] )
|