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
|
|
|
|
2009-10-06 10:23:25 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
|
|
|
|
# FIXME: need to set the appropriate flags for msvc, otherwise we get warnings
|
|
|
|
|
cflags = []
|
|
|
|
|
cxxflags = []
|
|
|
|
|
else:
|
|
|
|
|
cflags = ['-O2','-msse2','-mfpmath=sse']
|
|
|
|
|
cxxflags = ['-O2','-msse2','-mfpmath=sse']
|
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = env.Glob('intern/source/*.c')
|
2009-07-11 22:13:01 +00:00
|
|
|
raysources = env.Glob('intern/raytrace/*.cpp')
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2009-07-21 20:28:32 +00:00
|
|
|
incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna ../makesrna'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
|
2009-08-15 07:49:56 +00:00
|
|
|
incs += ' ../include ../blenloader ../../../intern/smoke/extern'
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = []
|
2005-02-22 17:15:43 +00:00
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_QUICKTIME']:
|
2006-02-19 22:21:45 +00:00
|
|
|
defs.append('WITH_QUICKTIME')
|
2008-11-11 14:14:22 +00:00
|
|
|
incs += ' ../quicktime ' + env['BF_QUICKTIME_INC']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-23 21:37:29 +00:00
|
|
|
if env['WITH_BF_OPENEXR']:
|
|
|
|
|
defs.append('WITH_OPENEXR')
|
|
|
|
|
|
2006-02-19 22:21:45 +00:00
|
|
|
if env['OURPLATFORM']=='linux2':
|
2009-08-07 15:57:02 +00:00
|
|
|
cflags += ['-pthread']
|
2006-02-19 22:21:45 +00:00
|
|
|
|
2009-10-01 16:32:33 +00:00
|
|
|
|
|
|
|
|
if env['OURPLATFORM'] == 'linux2':
|
|
|
|
|
cflags='-pthread'
|
|
|
|
|
incs += ' ../../../extern/binreloc/include'
|
|
|
|
|
|
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
|
2008-12-23 21:20:34 +00:00
|
|
|
env.BlenderLib ( libname = 'bf_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags )
|
2009-08-07 15:57:02 +00:00
|
|
|
env.BlenderLib ( libname = 'bf_render_raytrace', sources = raysources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags, cxx_compileflags=cxxflags )
|