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-08-10 21:37:16 +00:00
|
|
|
cflags = ['-O3','-msse2','-mfpmath=sse']
|
2009-08-07 15:57:02 +00:00
|
|
|
cxxflags = ['-O3','-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'
|
2008-11-11 14:14:22 +00:00
|
|
|
incs += ' ../include ../blenloader'
|
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
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_FFMPEG']:
|
2006-02-06 00:49:25 +00:00
|
|
|
defs.append('WITH_FFMPEG')
|
2006-02-05 19:16:32 +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
|
|
|
|
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 )
|