4 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc', 'win32-mingw'):
5 # FIXME: need to set the appropriate flags for msvc, otherwise we get warnings
9 if env['OURPLATFORM'] == 'darwin':
10 if env['MACOSX_ARCHITECTURE'] in ('i386', 'x86_64'):
11 cflags = env['CFLAGS'] + ['-mfpmath=sse']
12 cxxflags = env['CXXFLAGS'] + ['-mfpmath=sse']
14 cflags = env['CFLAGS']
15 cxxflags = env['CXXFLAGS']
17 sources = env.Glob('intern/source/*.c')
18 raysources = env.Glob('intern/raytrace/*.cpp')
20 incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna ../makesrna'
21 incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
22 incs += ' ../include ../blenloader ../freestyle ../../../intern/smoke/extern'
26 if env['WITH_BF_QUICKTIME']:
27 defs.append('WITH_QUICKTIME')
28 incs += ' ../quicktime ' + env['BF_QUICKTIME_INC']
30 if env['WITH_BF_OPENEXR']:
31 defs.append('WITH_OPENEXR')
33 if env['OURPLATFORM'] == 'linux2':
34 cflags = ['-O2','-msse2','-mfpmath=sse', '-pthread']
35 cxxflags = ['-O2','-msse2','-mfpmath=sse', '-pthread']
36 incs += ' ../../../extern/binreloc/include'
38 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
39 incs += ' ' + env['BF_PTHREADS_INC']
41 env.BlenderLib ( libname = 'bf_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags )
42 env.BlenderLib ( libname = 'bf_render_raytrace', sources = raysources, includes = Split(incs), defines=defs, libtype='core', priority=145, compileflags=cflags, cxx_compileflags=cxxflags )