2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2009-09-21 03:16:26 +00:00
|
|
|
import os
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = 'creator.c'
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
|
2007-12-27 22:16:54 +00:00
|
|
|
incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
|
|
|
|
incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
|
2011-05-06 20:18:42 +00:00
|
|
|
incs += ' ../blender/makesdna ../blender/makesrna'
|
|
|
|
incs += ' ../gameengine/BlenderRoutines #/extern/glew/include ../blender/gpu'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = []
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_QUICKTIME']:
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
|
|
|
defs.append('WITH_QUICKTIME')
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_BINRELOC']:
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ../../extern/binreloc/include'
|
|
|
|
defs.append('WITH_BINRELOC')
|
2008-01-18 15:10:17 +00:00
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_OPENEXR']:
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('WITH_OPENEXR')
|
2008-03-28 14:55:49 +00:00
|
|
|
|
2010-05-21 03:25:38 +00:00
|
|
|
if env['WITH_BF_TIFF']:
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('WITH_TIFF')
|
2010-05-21 03:25:38 +00:00
|
|
|
|
2008-10-19 06:12:11 +00:00
|
|
|
if not env['WITH_BF_SDL']:
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('DISABLE_SDL')
|
2008-10-19 06:12:11 +00:00
|
|
|
|
2008-11-11 14:14:22 +00:00
|
|
|
if env['WITH_BF_PYTHON']:
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ../blender/python'
|
2010-10-31 04:11:39 +00:00
|
|
|
defs.append('WITH_PYTHON')
|
2010-08-29 20:52:05 +00:00
|
|
|
if env['BF_DEBUG']:
|
|
|
|
defs.append('_DEBUG')
|
|
|
|
|
2009-10-19 16:29:26 +00:00
|
|
|
if env['BF_BUILDINFO']:
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('BUILD_DATE')
|
|
|
|
defs.append('NAN_BUILDINFO')
|
2010-04-14 17:15:33 +00:00
|
|
|
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
2009-09-21 03:16:26 +00:00
|
|
|
|
2010-04-15 10:28:32 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
2010-04-15 10:28:32 +00:00
|
|
|
|
2008-01-08 09:47:44 +00:00
|
|
|
env.BlenderLib ( libname = 'bf_creator', sources = Split(sources), includes = Split(incs), defines = defs, libtype='core', priority = 0 )
|