To enable it you will need to download OpenEXR and install it. For the Makefiles you will need to set WITH_OPENEXR=true and set NAN_OPENEXR to point to where OpenEXR is installed. For scons you'll need to remove config.opts to get the new options so you can enable OpenEXR, I was not able to get blender to link with scons so the scons stuff may need to be tweaked a little but I think it should work. For other platform managers The OpenEXR stuff is similar to QUICKTIME you need to define WITH_OPENEXR and setup the library stuff and as you'll notice in this commit there are two extra files. Kent
53 lines
1.8 KiB
Python
53 lines
1.8 KiB
Python
#!/usr/bin/python
|
|
Import ('extra_includes')
|
|
Import ('user_options_dict')
|
|
Import ('library_env')
|
|
|
|
imbuf_env = library_env.Copy ()
|
|
|
|
source_files = ['intern/allocimbuf.c',
|
|
'intern/amiga.c',
|
|
'intern/anim.c',
|
|
'intern/anim5.c',
|
|
'intern/antialias.c',
|
|
'intern/bitplanes.c',
|
|
'intern/bmp.c',
|
|
'intern/cmap.c',
|
|
'intern/cspace.c',
|
|
'intern/data.c',
|
|
'intern/dither.c',
|
|
'intern/divers.c',
|
|
'intern/filter.c',
|
|
'intern/ham.c',
|
|
'intern/hamx.c',
|
|
'intern/iff.c',
|
|
'intern/imageprocess.c',
|
|
'intern/iris.c',
|
|
'intern/jpeg.c',
|
|
'intern/png.c',
|
|
'intern/readimage.c',
|
|
'intern/rectop.c',
|
|
'intern/rotate.c',
|
|
'intern/scaling.c',
|
|
'intern/targa.c',
|
|
'intern/util.c',
|
|
'intern/writeimage.c']
|
|
|
|
if user_options_dict['USE_OPENEXR'] == 1:
|
|
source_files.append('intern/openexr.cpp')
|
|
|
|
imbuf_env.Append (CPPPATH = ['.',
|
|
'../makesdna',
|
|
'#/intern/guardedalloc',
|
|
'../blenlib',
|
|
'../avi',
|
|
'../quicktime',
|
|
'../blenkernel'])
|
|
|
|
imbuf_env.Append (CPPPATH = user_options_dict['JPEG_INCLUDE'])
|
|
imbuf_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
|
|
imbuf_env.Append (CPPPATH = user_options_dict['OPENEXR_INCLUDE'])
|
|
imbuf_env.Append (CPPPATH = user_options_dict['Z_INCLUDE'])
|
|
imbuf_env.Append (CPPPATH = extra_includes)
|
|
imbuf_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_imbuf', source=source_files)
|