build options to disable image formats WITH_CINEON, WITH_HDR.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 Aug 2010 11:25:34 +0000 (11:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 Aug 2010 11:25:34 +0000 (11:25 +0000)
- updated cmake, make & scons.
- renamed CMake build options WITH_TIFF -> WITH_IMAGE_TIFF, same for DDS, OPENJPEG etc.

43 files changed:
CMakeLists.txt
SConstruct
build_files/cmake/macros.cmake
build_files/make/nan_definitions.mk
build_files/scons/tools/btools.py
extern/CMakeLists.txt
intern/CMakeLists.txt
source/Makefile
source/blender/CMakeLists.txt
source/blender/SConscript
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/SConscript
source/blender/blenkernel/intern/Makefile
source/blender/blenkernel/intern/image.c
source/blender/editors/physics/CMakeLists.txt
source/blender/editors/space_file/CMakeLists.txt
source/blender/editors/space_file/Makefile
source/blender/editors/space_file/filelist.c
source/blender/editors/space_file/writeimage.c
source/blender/editors/space_image/CMakeLists.txt
source/blender/editors/space_image/Makefile
source/blender/editors/space_image/image_ops.c
source/blender/imbuf/CMakeLists.txt
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/SConscript
source/blender/imbuf/intern/Makefile
source/blender/imbuf/intern/dds/CMakeLists.txt
source/blender/imbuf/intern/filetype.c
source/blender/imbuf/intern/openexr/CMakeLists.txt
source/blender/imbuf/intern/radiance_hdr.c
source/blender/imbuf/intern/util.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/SConscript
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/Makefile
source/blender/makesrna/intern/SConscript
source/blender/makesrna/intern/rna_scene.c
source/blender/modifiers/CMakeLists.txt
source/blender/render/CMakeLists.txt
source/blenderplayer/CMakeLists.txt
source/creator/CMakeLists.txt
source/creator/Makefile
source/creator/creator.c

index e249f25..de736b2 100644 (file)
@@ -69,7 +69,7 @@ OPTION(WITH_INTERNATIONAL "Enable I18N   (International fonts and text)" ON)
 OPTION(WITH_LCMS          "Enable color correction with lcms" OFF)
 OPTION(WITH_PYTHON        "Enable Embedded Python API" ON)
 OPTION(WITH_BUILDINFO     "Include extra build details" ON)
-OPTION(WITH_ELBEEM        "Enable Elbeem (Fluid Simulation)" ON)
+OPTION(WITH_FLUID        "Enable Elbeem (Fluid Simulation)" ON)
 OPTION(WITH_FFTW3         "Enable FFTW3 support (Used for smoke and audio effects)" OFF)
 OPTION(WITH_BULLET        "Enable Bullet (Physics Engine)" ON)
 OPTION(WITH_GAMEENGINE    "Enable Game Engine" ON)
@@ -82,10 +82,12 @@ ELSE()
 ENDIF()
 
 # Image format support
-OPTION(WITH_OPENEXR       "Enable OpenEXR Support (http://www.openexr.com)" ON)
-OPTION(WITH_OPENJPEG      "Enable OpenJpeg Support (http://www.openjpeg.org/)" OFF)
-OPTION(WITH_TIFF          "Enable LibTIFF Support" ON)
-OPTION(WITH_DDS           "Enable DDS Support" ON)
+OPTION(WITH_IMAGE_OPENEXR       "Enable OpenEXR Support (http://www.openexr.com)" ON)
+OPTION(WITH_IMAGE_OPENJPEG      "Enable OpenJpeg Support (http://www.openjpeg.org/)" OFF)
+OPTION(WITH_IMAGE_TIFF          "Enable LibTIFF Support" ON)
+OPTION(WITH_IMAGE_DDS           "Enable DDS Image Support" ON)
+OPTION(WITH_IMAGE_CINEON        "Enable CINEON and DPX Image Support" ON)
+OPTION(WITH_IMAGE_HDR           "Enable HDR Image Support" ON)
 
 # Audio format support
 OPTION(WITH_FFMPEG        "Enable FFMPeg Support (http://ffmpeg.mplayerhq.hu/)" OFF)
@@ -220,7 +222,7 @@ IF(UNIX AND NOT APPLE)
                ENDIF(NOT SDL_FOUND)
        ENDIF(WITH_SDL)
 
-       IF(WITH_OPENEXR)
+       IF(WITH_IMAGE_OPENEXR)
                SET(OPENEXR /usr CACHE FILEPATH "OPENEXR Directory")
                FIND_PATH(OPENEXR_INC
                        ImfXdr.h
@@ -235,16 +237,16 @@ IF(UNIX AND NOT APPLE)
                SET(OPENEXR_LIB Half IlmImf Iex Imath)
                
                IF(NOT OPENEXR_INC)
-                       SET(WITH_OPENEXR OFF)
+                       SET(WITH_IMAGE_OPENEXR OFF)
                ENDIF(NOT OPENEXR_INC)
-       ENDIF(WITH_OPENEXR)
+       ENDIF(WITH_IMAGE_OPENEXR)
 
-       IF(WITH_TIFF)
+       IF(WITH_IMAGE_TIFF)
                FIND_PACKAGE(TIFF)
                IF(NOT TIFF_FOUND)
-                       SET(WITH_TIFF OFF)
+                       SET(WITH_IMAGE_TIFF OFF)
                ENDIF(NOT TIFF_FOUND)
-       ENDIF(WITH_TIFF)
+       ENDIF(WITH_IMAGE_TIFF)
 
        FIND_PACKAGE(JPEG REQUIRED)
 
@@ -497,7 +499,7 @@ IF(WIN32)
                        SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
                ENDIF(WITH_FFMPEG)
 
-               IF(WITH_OPENEXR)
+               IF(WITH_IMAGE_OPENEXR)
                        SET(OPENEXR ${LIBDIR}/openexr)
                        SET(OPENEXR_INC ${OPENEXR}/include ${OPENEXR}/include/IlmImf ${OPENEXR}/include/Iex ${OPENEXR}/include/Imath)
                        SET(OPENEXR_LIB Iex Half IlmImf Imath IlmThread)
@@ -509,14 +511,14 @@ IF(WIN32)
                        IF (MSVC90)
                                SET(OPENEXR_LIBPATH ${OPENEXR}/lib_vs2008)
                        ENDIF(MSVC90)
-               ENDIF(WITH_OPENEXR)
+               ENDIF(WITH_IMAGE_OPENEXR)
 
-               IF(WITH_TIFF)
+               IF(WITH_IMAGE_TIFF)
                        SET(TIFF ${LIBDIR}/tiff)
                        SET(TIFF_LIBRARY libtiff)
                        SET(TIFF_INCLUDE_DIR ${TIFF}/include)
                        SET(TIFF_LIBPATH ${TIFF}/lib)
-               ENDIF(WITH_TIFF)
+               ENDIF(WITH_IMAGE_TIFF)
 
                IF(WITH_JACK)
                        SET(JACK ${LIBDIR}/jack)
@@ -607,19 +609,19 @@ IF(WIN32)
                        SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
                ENDIF(WITH_FFMPEG)
 
-               IF(WITH_OPENEXR)
+               IF(WITH_IMAGE_OPENEXR)
                        SET(OPENEXR ${LIBDIR}/gcc/openexr)
                        SET(OPENEXR_INC ${OPENEXR}/include ${OPENEXR}/include/OpenEXR)
                        SET(OPENEXR_LIB Half IlmImf Imath IlmThread)
                        SET(OPENEXR_LIBPATH ${OPENEXR}/lib)
-               ENDIF(WITH_OPENEXR)
+               ENDIF(WITH_IMAGE_OPENEXR)
 
-               IF(WITH_TIFF)
+               IF(WITH_IMAGE_TIFF)
                        SET(TIFF ${LIBDIR}/gcc/tiff)
                        SET(TIFF_LIBRARY tiff)
                        SET(TIFF_INCLUDE_DIR ${TIFF}/include)
                        SET(TIFF_LIBPATH ${TIFF}/lib)
-               ENDIF(WITH_TIFF)
+               ENDIF(WITH_IMAGE_TIFF)
 
                IF(WITH_JACK)
                        SET(JACK ${LIBDIR}/jack)
@@ -727,12 +729,12 @@ IF(APPLE)
        SET(FREETYPE_LIBPATH ${FREETYPE}/lib)
        SET(FREETYPE_LIBRARY freetype)
 
-       IF(WITH_OPENEXR)
+       IF(WITH_IMAGE_OPENEXR)
                SET(OPENEXR ${LIBDIR}/openexr)
                SET(OPENEXR_INC ${OPENEXR}/include/OpenEXR ${OPENEXR}/include)
                SET(OPENEXR_LIB Iex Half IlmImf Imath IlmThread)
                SET(OPENEXR_LIBPATH ${OPENEXR}/lib)
-       ENDIF(WITH_OPENEXR)
+       ENDIF(WITH_IMAGE_OPENEXR)
 
        IF(WITH_LCMS)
                SET(LCMS ${LIBDIR}/lcms)
@@ -810,12 +812,12 @@ IF(APPLE)
        SET(JPEG_INC "${JPEG}/include")
        SET(JPEG_LIBPATH ${JPEG}/lib)
 
-       IF(WITH_TIFF)
+       IF(WITH_IMAGE_TIFF)
                SET(TIFF ${LIBDIR}/tiff)
                SET(TIFF_INCLUDE_DIR ${TIFF}/include)
                SET(TIFF_LIBRARY tiff)
                SET(TIFF_LIBPATH ${TIFF}/lib)
-       ENDIF(WITH_TIFF)
+       ENDIF(WITH_IMAGE_TIFF)
 
        IF(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
                SET(PLATFORM_CFLAGS " -msse -msse2 ${PLATFORM_CFLAGS}")
@@ -869,11 +871,11 @@ ENDIF(WITH_BUILDINFO)
        
 #-----------------------------------------------------------------------------
 # Common.
-IF(WITH_OPENJPEG)
+IF(WITH_IMAGE_OPENJPEG)
        set(OPENJPEG ${CMAKE_SOURCE_DIR}/extern/libopenjpeg)
        set(OPENJPEG_INC ${OPENJPEG})
        set(OPENJPEG_LIb extern_libopenjpeg)
-ENDIF(WITH_OPENJPEG)
+ENDIF(WITH_IMAGE_OPENJPEG)
 
 #-----------------------------------------------------------------------------
 # Blender WebPlugin
index eefef3c..1f67f79 100644 (file)
@@ -223,6 +223,8 @@ if 'blenderlite' in B.targets:
        target_env_defs['WITH_BF_QUICKTIME'] = False
        target_env_defs['WITH_BF_REDCODE'] = False
        target_env_defs['WITH_BF_DDS'] = False
+       target_env_defs['WITH_BF_CINEON'] = False
+       target_env_defs['WITH_BF_HDR'] = False
        target_env_defs['WITH_BF_ZLIB'] = False
        target_env_defs['WITH_BF_SDL'] = False
        target_env_defs['WITH_BF_JPEG'] = False
index 1aa9ee3..22c0903 100644 (file)
@@ -58,12 +58,12 @@ MACRO(SETUP_LIBDIRS)
        IF(WITH_FFMPEG)
                LINK_DIRECTORIES(${FFMPEG_LIBPATH})
        ENDIF(WITH_FFMPEG)
-       IF(WITH_OPENEXR)
+       IF(WITH_IMAGE_OPENEXR)
                LINK_DIRECTORIES(${OPENEXR_LIBPATH})
-       ENDIF(WITH_OPENEXR)
-       IF(WITH_TIFF)
+       ENDIF(WITH_IMAGE_OPENEXR)
+       IF(WITH_IMAGE_TIFF)
                LINK_DIRECTORIES(${TIFF_LIBPATH})
-       ENDIF(WITH_TIFF)
+       ENDIF(WITH_IMAGE_TIFF)
        IF(WITH_LCMS)
                LINK_DIRECTORIES(${LCMS_LIBPATH})
        ENDIF(WITH_LCMS)
@@ -140,10 +140,10 @@ MACRO(SETUP_LIBLINKS
        IF(WITH_QUICKTIME)
                TARGET_LINK_LIBRARIES(${target} ${QUICKTIME_LIB})
        ENDIF(WITH_QUICKTIME)
-       IF(WITH_TIFF)
+       IF(WITH_IMAGE_TIFF)
                TARGET_LINK_LIBRARIES(${target} ${TIFF_LIBRARY})
-       ENDIF(WITH_TIFF)
-       IF(WITH_OPENEXR)
+       ENDIF(WITH_IMAGE_TIFF)
+       IF(WITH_IMAGE_OPENEXR)
                IF(WIN32)
                        FOREACH(loop_var ${OPENEXR_LIB})
                                TARGET_LINK_LIBRARIES(${target} debug ${loop_var}_d)
@@ -152,7 +152,7 @@ MACRO(SETUP_LIBLINKS
                ELSE(WIN32)
                        TARGET_LINK_LIBRARIES(${target} ${OPENEXR_LIB})
                ENDIF(WIN32)
-       ENDIF(WITH_OPENEXR)
+       ENDIF(WITH_IMAGE_OPENEXR)
        IF(WITH_LCMS)
                TARGET_LINK_LIBRARIES(${target} ${LCMS_LIBRARY})
        ENDIF(WITH_LCMS)
index d14bdb0..cc74582 100644 (file)
@@ -159,6 +159,8 @@ ifndef CONFIG_GUESS
   endif
 
   export WITH_TIFF ?= true
+  export WITH_CINEON ?= true
+  export WITH_HDR ?= true
   
   # Compare recreated .mo files with committed ones
   export BF_VERIFY_MO_FILES ?= true
index 93f3795..c930c15 100644 (file)
@@ -36,7 +36,7 @@ def validate_arguments(args, bc):
             'WITH_BF_SNDFILE', 'BF_SNDFILE', 'BF_SNDFILE_INC', 'BF_SNDFILE_LIB', 'BF_SNDFILE_LIBPATH',
             'BF_PTHREADS', 'BF_PTHREADS_INC', 'BF_PTHREADS_LIB', 'BF_PTHREADS_LIBPATH',
             'WITH_BF_OPENEXR', 'BF_OPENEXR', 'BF_OPENEXR_INC', 'BF_OPENEXR_LIB', 'BF_OPENEXR_LIBPATH', 'WITH_BF_STATICOPENEXR', 'BF_OPENEXR_LIB_STATIC',
-            'WITH_BF_DDS',
+            'WITH_BF_DDS', 'WITH_BF_CINEON', 'WITH_BF_HDR',
             'WITH_BF_FFMPEG', 'BF_FFMPEG_LIB','BF_FFMPEG_EXTRA', 'BF_FFMPEG',  'BF_FFMPEG_INC',
             'WITH_BF_OGG', 'BF_OGG', 'BF_OGG_LIB',
             'WITH_BF_JPEG', 'BF_JPEG', 'BF_JPEG_INC', 'BF_JPEG_LIB', 'BF_JPEG_LIBPATH',
@@ -223,7 +223,11 @@ def read_opts(env, cfg, args):
         ('BF_OPENEXR_LIBPATH', 'OPENEXR library path', ''),
         ('BF_OPENEXR_LIB_STATIC', 'OPENEXR static library', ''),
 
-        (BoolVariable('WITH_BF_DDS', 'Use DDS if true', True)),
+        (BoolVariable('WITH_BF_DDS', 'Support DDS image format if true', True)),
+
+        (BoolVariable('WITH_BF_CINEON', 'Support CINEON and DPX image formats if true', True)),
+
+        (BoolVariable('WITH_BF_HDR', 'Support HDR image formats if true', True)),
 
         (BoolVariable('WITH_BF_FFMPEG', 'Use FFMPEG if true', False)),
         ('BF_FFMPEG', 'FFMPEG base path', ''),
index 35271d2..b15c8a3 100644 (file)
@@ -34,9 +34,9 @@ ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
 ADD_SUBDIRECTORY(glew)
 
-IF(WITH_OPENJPEG)
+IF(WITH_IMAGE_OPENJPEG)
        ADD_SUBDIRECTORY(libopenjpeg)
-ENDIF(WITH_OPENJPEG)
+ENDIF(WITH_IMAGE_OPENJPEG)
 
 IF(WITH_LZO)
        ADD_SUBDIRECTORY(lzo)
index a370118..d64029a 100644 (file)
@@ -38,8 +38,8 @@ ADD_SUBDIRECTORY(boolop)
 ADD_SUBDIRECTORY(opennl)
 ADD_SUBDIRECTORY(smoke)
 
-IF(WITH_ELBEEM)
+IF(WITH_FLUID)
        ADD_SUBDIRECTORY(elbeem)
-ENDIF(WITH_ELBEEM)
+ENDIF(WITH_FLUID)
 
 ADD_SUBDIRECTORY(bsp)
index 12e47ba..e0c39bf 100644 (file)
@@ -204,7 +204,9 @@ ifeq ($(WITH_OPENJPEG), true)
     endif
 endif
 
-COMLIB += $(OCGDIR)/blender/imbuf/cineon/$(DEBUG_DIR)libcineon.a
+ifeq ($(WITH_CINEON), true)
+       COMLIB += $(OCGDIR)/blender/imbuf/cineon/$(DEBUG_DIR)libcineon.a
+endif
 
 ifeq ($(WITH_DDS), true)
     COMLIB += $(OCGDIR)/blender/imbuf/dds/$(DEBUG_DIR)libdds.a
index 1643773..96d1ce3 100644 (file)
@@ -34,7 +34,6 @@ ADD_SUBDIRECTORY(blenlib)
 ADD_SUBDIRECTORY(blenloader)
 ADD_SUBDIRECTORY(blenpluginapi)
 ADD_SUBDIRECTORY(imbuf)
-ADD_SUBDIRECTORY(imbuf/intern/cineon)
 ADD_SUBDIRECTORY(gpu)
 ADD_SUBDIRECTORY(makesdna)
 ADD_SUBDIRECTORY(makesrna)
@@ -43,13 +42,17 @@ ADD_SUBDIRECTORY(render)
 ADD_SUBDIRECTORY(blenfont)
 ADD_SUBDIRECTORY(ikplugin)
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_SUBDIRECTORY(imbuf/intern/openexr)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_DDS)
+IF(WITH_IMAGE_DDS)
        ADD_SUBDIRECTORY(imbuf/intern/dds)
-ENDIF(WITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
+
+IF(WITH_IMAGE_CINEON)
+       ADD_SUBDIRECTORY(imbuf/intern/cineon)
+ENDIF(WITH_IMAGE_CINEON)
 
 IF(WITH_QUICKTIME)
        ADD_SUBDIRECTORY(quicktime)
index 98e8ad7..549725a 100644 (file)
@@ -10,7 +10,6 @@ SConscript(['avi/SConscript',
             'gpu/SConscript',
             'editors/SConscript',
             'imbuf/SConscript',
-            'imbuf/intern/cineon/SConscript',
             'makesdna/SConscript',
             'makesrna/SConscript',
             'readblenfile/SConscript',
@@ -29,6 +28,9 @@ if env['WITH_BF_PYTHON']:
 if env['WITH_BF_DDS']:
     SConscript (['imbuf/intern/dds/SConscript'])
 
+if env['WITH_BF_CINEON']:
+    SConscript (['imbuf/intern/cineon/SConscript'])
+
 if env['WITH_BF_OPENEXR']:
     SConscript (['imbuf/intern/openexr/SConscript'])
 
index bcd6015..fbd75a7 100644 (file)
@@ -46,21 +46,29 @@ IF(WITH_BULLET)
        ADD_DEFINITIONS(-DUSE_BULLET)
 ENDIF(WITH_BULLET)
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_TIFF)
+IF(WITH_IMAGE_TIFF)
        ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_TIFF)
+ENDIF(WITH_IMAGE_TIFF)
 
-IF(WITH_OPENJPEG)
+IF(WITH_IMAGE_OPENJPEG)
        ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_OPENJPEG)
+ENDIF(WITH_IMAGE_OPENJPEG)
 
-IF(WITH_DDS)
+IF(WITH_IMAGE_DDS)
        ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
+
+IF(WITH_IMAGE_CINEON)
+       ADD_DEFINITIONS(-DWITH_CINEON)
+ENDIF(WITH_IMAGE_CINEON)
+
+IF(WITH_IMAGE_HDR)
+       ADD_DEFINITIONS(-DWITH_HDR)
+ENDIF(WITH_IMAGE_HDR)
 
 IF(WITH_QUICKTIME)
        SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
@@ -87,9 +95,9 @@ IF(WITH_OPENMP)
                ADD_DEFINITIONS(-DPARALLEL=1)
 ENDIF(WITH_OPENMP)
 
-IF(NOT WITH_ELBEEM)
+IF(NOT WITH_FLUID)
        ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_ELBEEM)
+ENDIF(NOT WITH_FLUID)
 
 IF(WITH_LZO)
        SET(INC ${INC} ../../../extern/lzo/minilzo)
index a670565..9f5027f 100644 (file)
@@ -47,6 +47,12 @@ if env['WITH_BF_OPENJPEG']:
 if env['WITH_BF_DDS']:
        defs.append('WITH_DDS')
 
+if env['WITH_BF_CINEON']:
+       defs.append('WITH_CINEON')
+
+if env['WITH_BF_HDR']:
+       defs.append('WITH_HDR')
+
 if env['WITH_BF_FFMPEG']:
        defs.append('WITH_FFMPEG')
        incs += ' ' + env['BF_FFMPEG_INC']
index 15c0225..7a4eb52 100644 (file)
@@ -136,6 +136,14 @@ ifeq ($(WITH_TIFF), true)
     CPPFLAGS += -DWITH_TIFF
 endif
 
+ifeq ($(WITH_CINEON), true)
+    CPPFLAGS += -DWITH_CINEON
+endif
+
+ifeq ($(WITH_HDR), true)
+    CPPFLAGS += -DWITH_HDR
+endif
+
 ifeq ($(OS), darwin)
     ifeq ($(WITH_BF_OPENMP), true)
       CPPFLAGS += -DPARALLEL=1
index 77607ae..d2612e9 100644 (file)
@@ -660,8 +660,10 @@ int BKE_imtype_to_ftype(int imtype)
                return TGA;
        else if(imtype== R_IRIS) 
                return IMAGIC;
+#ifdef WITH_HDR
        else if (imtype==R_RADHDR)
                return RADHDR;
+#endif
        else if (imtype==R_PNG)
                return PNG;
 #ifdef WITH_DDS
@@ -670,14 +672,18 @@ int BKE_imtype_to_ftype(int imtype)
 #endif
        else if (imtype==R_BMP)
                return BMP;
+#ifdef WITH_TIFF
        else if (imtype==R_TIFF)
                return TIF;
+#endif
        else if (imtype==R_OPENEXR || imtype==R_MULTILAYER)
                return OPENEXR;
+#ifdef WITH_CINEON
        else if (imtype==R_CINEON)
                return CINEON;
        else if (imtype==R_DPX)
                return DPX;
+#endif
        else if (imtype==R_TARGA)
                return TGA;
        else if(imtype==R_RAWTGA)
@@ -696,8 +702,10 @@ int BKE_ftype_to_imtype(int ftype)
                return TGA;
        else if(ftype == IMAGIC) 
                return R_IRIS;
+#ifdef WITH_HDR
        else if (ftype & RADHDR)
                return R_RADHDR;
+#endif
        else if (ftype & PNG)
                return R_PNG;
 #ifdef WITH_DDS
@@ -706,14 +714,18 @@ int BKE_ftype_to_imtype(int ftype)
 #endif
        else if (ftype & BMP)
                return R_BMP;
+#ifdef WITH_TIFF
        else if (ftype & TIF)
                return R_TIFF;
+#endif
        else if (ftype & OPENEXR)
                return R_OPENEXR;
+#ifdef WITH_CINEON
        else if (ftype & CINEON)
                return R_CINEON;
        else if (ftype & DPX)
                return R_DPX;
+#endif
        else if (ftype & TGA)
                return R_TARGA;
        else if(ftype & RAWTGA)
@@ -756,10 +768,12 @@ void BKE_add_image_extension(char *string, int imtype)
                if(!BLI_testextensie(string, ".rgb"))
                        extension= ".rgb";
        }
+#ifdef WITH_HDR
        else if(imtype==R_RADHDR) {
                if(!BLI_testextensie(string, ".hdr"))
                        extension= ".hdr";
        }
+#endif
        else if (ELEM5(imtype, R_PNG, R_FFMPEG, R_H264, R_THEORA, R_XVID)) {
                if(!BLI_testextensie(string, ".png"))
                        extension= ".png";
@@ -790,6 +804,7 @@ void BKE_add_image_extension(char *string, int imtype)
                        extension= ".exr";
        }
 #endif
+#ifdef WITH_CINEON
        else if(imtype==R_CINEON){
                if (!BLI_testextensie(string, ".cin"))
                        extension= ".cin";
@@ -798,6 +813,7 @@ void BKE_add_image_extension(char *string, int imtype)
                if (!BLI_testextensie(string, ".dpx"))
                        extension= ".dpx";
        }
+#endif
        else if(imtype==R_TARGA) {
                if(!BLI_testextensie(string, ".tga"))
                        extension= ".tga";
@@ -1180,12 +1196,17 @@ int BKE_write_ibuf(Scene *scene, ImBuf *ibuf, char *name, int imtype, int subimt
 {
        int ok;
        
-       if(imtype==0);
-       else if(imtype== R_IRIS) 
+       if(imtype==0) {
+               /* pass */
+       }
+       else if(imtype== R_IRIS) {
                ibuf->ftype= IMAGIC;
+       }
+#ifdef WITH_HDR
        else if ((imtype==R_RADHDR)) {
                ibuf->ftype= RADHDR;
        }
+#endif
        else if (ELEM5(imtype, R_PNG, R_FFMPEG, R_H264, R_THEORA, R_XVID)) {
                ibuf->ftype= PNG;
 
@@ -1221,12 +1242,14 @@ int BKE_write_ibuf(Scene *scene, ImBuf *ibuf, char *name, int imtype, int subimt
                
        }
 #endif
+#ifdef WITH_CINEON
        else if (imtype==R_CINEON) {
                ibuf->ftype = CINEON;
        }
        else if (imtype==R_DPX) {
                ibuf->ftype = DPX;
        }
+#endif
        else if (imtype==R_TARGA) {
                ibuf->ftype= TGA;
        }
index ebe3f91..be82665 100644 (file)
@@ -32,9 +32,9 @@ SET(INC
        ../../../../intern/guardedalloc
 )
 
-IF(NOT WITH_ELBEEM)
+IF(NOT WITH_FLUID)
        ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_ELBEEM)
+ENDIF(NOT WITH_FLUID)
 
 IF(WITH_OPENMP)
                ADD_DEFINITIONS(-DPARALLEL=1)
index 021e259..5cbe9bb 100644 (file)
@@ -36,21 +36,29 @@ SET(INC
        ../../windowmanager
 )
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_TIFF)
+IF(WITH_IMAGE_TIFF)
        ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_TIFF)
+ENDIF(WITH_IMAGE_TIFF)
 
-IF(WITH_OPENJPEG)
+IF(WITH_IMAGE_OPENJPEG)
        ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_OPENJPEG)
+ENDIF(WITH_IMAGE_OPENJPEG)
 
-IF(WITH_DDS)
+IF(WITH_IMAGE_DDS)
        ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
+
+IF(WITH_IMAGE_CINEON)
+       ADD_DEFINITIONS(-DWITH_CINEON)
+ENDIF(WITH_IMAGE_CINEON)
+
+IF(WITH_IMAGE_HDR)
+       ADD_DEFINITIONS(-DWITH_HDR)
+ENDIF(WITH_IMAGE_HDR)
 
 IF(WIN32)
        SET(INC ${INC} ${PTHREADS_INC})
index 29548b5..48f6879 100644 (file)
@@ -67,3 +67,10 @@ ifeq ($(WITH_TIFF), true)
     CPPFLAGS += -DWITH_TIFF
 endif
 
+ifeq ($(WITH_CINEON), true)
+    CPPFLAGS += -DWITH_CINEON
+endif
+
+ifeq ($(WITH_HDR), true)
+    CPPFLAGS += -DWITH_HDR
+endif
\ No newline at end of file
index f31b8a4..a6668d9 100644 (file)
@@ -853,7 +853,13 @@ void filelist_setfiletypes(struct FileList* filelist, short has_quicktime)
                                ||      BLI_testextensie(file->relname, ".pntg") //macpaint
                                ||      BLI_testextensie(file->relname, ".qtif")
                                ||      BLI_testextensie(file->relname, ".sgi")
+#ifdef WITH_HDR
                                ||      BLI_testextensie(file->relname, ".hdr")
+#endif
+#ifdef WITH_CINEON
+                               ||      BLI_testextensie(file->relname, ".cin")
+                               ||      BLI_testextensie(file->relname, ".dpx")
+#endif
 #ifdef WITH_DDS
                                ||      BLI_testextensie(file->relname, ".dds")
 #endif
@@ -916,7 +922,13 @@ void filelist_setfiletypes(struct FileList* filelist, short has_quicktime)
                                ||      BLI_testextensie(file->relname, ".tif")
                                ||      BLI_testextensie(file->relname, ".tiff")
                                ||      BLI_testextensie(file->relname, ".tx")
+#ifdef WITH_HDR
                                ||      BLI_testextensie(file->relname, ".hdr")
+#endif
+#ifdef WITH_CINEON                             
+                               ||      BLI_testextensie(file->relname, ".cin")
+                               ||      BLI_testextensie(file->relname, ".dpx")
+#endif
 #ifdef WITH_DDS
                                ||      BLI_testextensie(file->relname, ".dds")
 #endif
index 05efdc1..131e9fa 100644 (file)
@@ -125,9 +125,11 @@ static void save_rendered_image_cb_real(char *name, int confirm)
 void save_image_filesel_str(Scene *scene, char *str)
 {
        switch(scene->r.imtype) {
+#ifdef WITH_HDR
                case R_RADHDR:
                        strcpy(str, "Save Radiance HDR");
                        break;
+#endif
                case R_FFMPEG:
                case R_H264:
                case R_XVID:
@@ -153,12 +155,14 @@ void save_image_filesel_str(Scene *scene, char *str)
                        strcpy(str, "Save OpenEXR");
                        break;
 #endif
+#ifdef WITH_CINEON
                case R_CINEON:
                        strcpy(str, "Save Cineon");
                        break;
                case R_DPX:
                        strcpy(str, "Save DPX");
                        break;
+#endif
                case R_RAWTGA:
                        strcpy(str, "Save Raw Targa");
                        break;
@@ -168,9 +172,6 @@ void save_image_filesel_str(Scene *scene, char *str)
                case R_IRIZ:
                        strcpy(str, "Save IRIS");
                        break;
-               case R_HAMX:
-                       strcpy(str, "Save HAMX");
-                       break;
                case R_TARGA:
                        strcpy(str, "Save Targa");
                        break;
index 71eebdb..f644338 100644 (file)
@@ -33,13 +33,13 @@ SET(INC
        ../../windowmanager
 )
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_TIFF)
+IF(WITH_IMAGE_TIFF)
        ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_TIFF)
+ENDIF(WITH_IMAGE_TIFF)
 
 IF(WITH_LCMS)
        SET(INC ${INC} ${LCMS_INCLUDE_DIR})
index 4f53216..cde3108 100644 (file)
@@ -61,3 +61,10 @@ ifeq ($(WHITH_TIFF), true)
     CPPFLAGS += -DWITH_TIFF
 endif
 
+ifeq ($(WHITH_CINEON), true)
+    CPPFLAGS += -DWITH_CINEON
+endif
+
+ifeq ($(WHITH_HDR), true)
+    CPPFLAGS += -DWITH_HDR
+endif
\ No newline at end of file
index d69c34a..4246516 100644 (file)
@@ -648,9 +648,13 @@ static const EnumPropertyItem image_file_type_items[] = {
 #ifdef WITH_TIFF
                {R_TIFF, "TIFF", 0, "Tiff", ""},
 #endif
+#ifdef WITH_DDS
                {R_RADHDR, "RADIANCE_HDR", 0, "Radiance HDR", ""},
+#endif
+#ifdef WITH_CINEON
                {R_CINEON, "CINEON", 0, "Cineon", ""},
                {R_DPX, "DPX", 0, "DPX", ""},
+#endif
 #ifdef WITH_OPENEXR
                {R_OPENEXR, "OPENEXR", 0, "OpenEXR", ""},
        /* saving sequences of multilayer won't work, they copy buffers  */
index 57f7e83..49886bd 100644 (file)
@@ -44,19 +44,19 @@ IF(WIN32)
        SET(INC ${INC} ${PTHREADS_INC})
 ENDIF(WIN32)
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_TIFF)
+IF(WITH_IMAGE_TIFF)
        SET(INC ${INC} ${TIFF_INCLUDE_DIR})
        ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_TIFF)
+ENDIF(WITH_IMAGE_TIFF)
 
-IF(WITH_OPENJPEG)
+IF(WITH_IMAGE_OPENJPEG)
        SET(INC ${INC} ${OPENJPEG_INC})
        ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_OPENJPEG)
+ENDIF(WITH_IMAGE_OPENJPEG)
 
 IF(WITH_QUICKTIME)
        SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
@@ -68,8 +68,16 @@ IF(WITH_FFMPEG)
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
-IF(WITH_DDS)
+IF(WITH_IMAGE_DDS)
        ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
+
+IF(WITH_IMAGE_CINEON)
+       ADD_DEFINITIONS(-DWITH_CINEON)
+ENDIF(WITH_IMAGE_CINEON)
+
+IF(WITH_IMAGE_HDR)
+       ADD_DEFINITIONS(-DWITH_HDR)
+ENDIF(WITH_IMAGE_HDR)
 
 BLENDERLIB(bf_imbuf "${SRC}" "${INC}")
index e0dcc34..7408a43 100644 (file)
@@ -173,16 +173,22 @@ typedef struct ImBuf {
 #define QUICKTIME              (1 << 25)
 #endif
 
+#ifdef WITH_HDR
 #define RADHDR                 (1 << 24)
+#endif
+#ifdef WITH_TIFF
 #define TIF                            (1 << 23)
 #define TIF_16BIT              (1 << 8 )
+#endif
 
 #define OPENEXR                        (1 << 22)
 #define OPENEXR_HALF   (1 << 8 )
 #define OPENEXR_COMPRESS (7)   
 
+#ifdef WITH_CINEON
 #define CINEON                 (1 << 21)
 #define DPX                            (1 << 20)
+#endif
 
 #ifdef WITH_DDS
 #define DDS                            (1 << 19)
index 439cdec..6b3360a 100644 (file)
@@ -26,6 +26,12 @@ if env['WITH_BF_TIFF']:
 if env['WITH_BF_DDS']:
     defs.append('WITH_DDS')
 
+if env['WITH_BF_CINEON']:
+    defs.append('WITH_CINEON')
+
+if env['WITH_BF_HDR']:
+    defs.append('WITH_HDR')
+
 if env['WITH_BF_FFMPEG']:
     defs.append('WITH_FFMPEG')
     incs += ' ' + env['BF_FFMPEG_INC']
index 5f8029d..f3fa173 100644 (file)
@@ -36,7 +36,12 @@ include nan_subdirs.mk
 include nan_compile.mk
 include nan_definitions.mk
 
-DIRS = cineon
+DIRS = 
+
+ifeq ($(WITH_CINEON), true)
+       DIRS += cineon
+       CPPFLAGS += -DWITH_CINEON
+endif
 
 ifeq ($(WITH_OPENEXR), true)
     DIRS += openexr
@@ -89,3 +94,7 @@ ifeq ($(WITH_TIFF), true)
    CPPFLAGS += -DWITH_TIFF
    CPPFLAGS += -I$(NAN_TIFF)/include
 endif
+
+ifeq ($(WITH_HDR), true)
+   CPPFLAGS += -DWITH_HDR
+endif
index 64a37e0..376dd3d 100644 (file)
@@ -37,8 +37,8 @@ SET(INC
        ../../../../../intern/guardedalloc
 )
 
-if(WITH_DDS)
+if(WITH_IMAGE_DDS)
        ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
 
 BLENDERLIB(bf_dds "${SRC}" "${INC}")                 
index c2140e1..db2eef7 100644 (file)
@@ -60,14 +60,18 @@ ImFileType IMB_FILE_TYPES[]= {
        {NULL, NULL, imb_is_a_png, imb_ftype_default, imb_loadpng, imb_savepng, NULL, 0, PNG},
        {NULL, NULL, imb_is_a_bmp, imb_ftype_default, imb_bmp_decode, imb_savebmp, NULL, 0, BMP},
        {NULL, NULL, imb_is_a_targa, imb_ftype_default, imb_loadtarga, imb_savetarga, NULL, 0, TGA},
+#ifdef WITH_CINEON
        {NULL, NULL, imb_is_dpx, imb_ftype_default, imb_loaddpx, imb_save_dpx, NULL, IM_FTYPE_FLOAT, DPX},
        {NULL, NULL, imb_is_cineon, imb_ftype_default, imb_loadcineon, imb_savecineon, NULL, IM_FTYPE_FLOAT, CINEON},
+#endif
 #ifdef WITH_TIFF
        {imb_inittiff, NULL, imb_is_a_tiff, imb_ftype_default, imb_loadtiff, imb_savetiff, imb_loadtiletiff, 0, TIF},
 #elif defined(__APPLE__) && defined(IMBUF_COCOA)
        {NULL, NULL, imb_is_a_cocoa, imb_ftype_cocoa, imb_imb_cocoaLoadImage, imb_savecocoa, NULL, 0, TIF},
 #endif
+#ifdef WITH_HDR
        {NULL, NULL, imb_is_a_hdr, imb_ftype_default, imb_loadhdr, imb_savehdr, NULL, IM_FTYPE_FLOAT, RADHDR},
+#endif
 #ifdef WITH_OPENEXR
        {NULL, NULL, imb_is_a_openexr, imb_ftype_default, imb_load_openexr, imb_save_openexr, NULL, IM_FTYPE_FLOAT, OPENEXR},
 #endif
index 1a098c8..cfc977f 100644 (file)
@@ -38,8 +38,8 @@ SET(INC
        ${OPENEXR_INC}
 )
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
 BLENDERLIB(bf_openexr "${SRC}" "${INC}")                 
index dabb678..a0942c2 100644 (file)
@@ -29,6 +29,8 @@
  * ***** END GPL LICENSE BLOCK *****
 */
 
+#ifdef WITH_HDR
+
 /* ----------------------------------------------------------------------
   Radiance High Dynamic Range image file IO
   For description and code for reading/writing of radiance hdr files 
@@ -358,3 +360,4 @@ int imb_savehdr(struct ImBuf *ibuf, char *name, int flags)
        return 1;
 }
 
+#endif /* WITH_HDR */
index e6f4e22..726a8fe 100644 (file)
@@ -118,7 +118,9 @@ int IMB_ispic(char *filename)
                                ||      BLI_testextensie(filename, ".tiff")
                                ||      BLI_testextensie(filename, ".tx")
 #endif
+#ifdef WITH_HDR
                                ||      BLI_testextensie(filename, ".hdr")
+#endif
                                ||      BLI_testextensie(filename, ".tga")
                                ||      BLI_testextensie(filename, ".rgb")
                                ||      BLI_testextensie(filename, ".bmp")
@@ -134,7 +136,10 @@ int IMB_ispic(char *filename)
                                ||      BLI_testextensie(filename, ".pict")
                                ||      BLI_testextensie(filename, ".pntg") //macpaint
                                ||      BLI_testextensie(filename, ".qtif")
+#ifdef WITH_CINEON                             
+                               ||      BLI_testextensie(filename, ".dpx")
                                ||      BLI_testextensie(filename, ".cin")
+#endif
 #ifdef WITH_BF_OPENEXR
                                ||      BLI_testextensie(filename, ".exr")
 #endif
@@ -154,12 +159,17 @@ int IMB_ispic(char *filename)
                                ||      BLI_testextensie(filename, ".tiff")
                                ||      BLI_testextensie(filename, ".tx")
 #endif
+#ifdef WITH_HDR
                                ||      BLI_testextensie(filename, ".hdr")
+#endif
                                ||      BLI_testextensie(filename, ".tga")
                                ||      BLI_testextensie(filename, ".rgb")
                                ||      BLI_testextensie(filename, ".bmp")
                                ||      BLI_testextensie(filename, ".png")
+#ifdef WITH_CINEON
                                ||      BLI_testextensie(filename, ".cin")
+                               ||      BLI_testextensie(filename, ".dpx")
+#endif
 #ifdef WITH_DDS
                                ||      BLI_testextensie(filename, ".dds")
 #endif
index 984aa5a..f9e570a 100644 (file)
@@ -961,8 +961,8 @@ typedef struct Scene {
 /* imtype */
 #define R_TARGA                0
 #define R_IRIS         1
-#define R_HAMX         2
-#define R_FTYPE                3 /* ftype is nomore */
+/* #define R_HAMX              2 */ /* hamx is nomore */
+/* #define R_FTYPE             3 */ /* ftype is nomore */
 #define R_JPEG90       4
 #define R_MOVIE                5
 #define R_IRIZ         7
index 9d65522..7ac76c4 100644 (file)
@@ -24,6 +24,12 @@ if env['WITH_BF_OPENJPEG']:
 if env['WITH_BF_DDS']:
        defs.append('WITH_DDS')
 
+if env['WITH_BF_CINEON']:
+       defs.append('WITH_CINEON')
+
+if env['WITH_BF_HDR']:
+       defs.append('WITH_HDR')
+
 if env['WITH_BF_FFMPEG']:
        defs.append('WITH_FFMPEG')
        incs += ' ' + env['BF_FFMPEG_INC']
index 72eb206..9dbb2fd 100644 (file)
@@ -70,21 +70,29 @@ IF(WITH_GAMEENGINE)
        ADD_DEFINITIONS(-DGAMEBLENDER)
 ENDIF(WITH_GAMEENGINE)
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_TIFF)
+IF(WITH_IMAGE_TIFF)
        ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_TIFF)
+ENDIF(WITH_IMAGE_TIFF)
 
-IF(WITH_OPENJPEG)
+IF(WITH_IMAGE_OPENJPEG)
        ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_OPENJPEG)
+ENDIF(WITH_IMAGE_OPENJPEG)
 
-IF(WITH_DDS)
+IF(WITH_IMAGE_DDS)
        ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
+
+IF(WITH_IMAGE_CINEON)
+       ADD_DEFINITIONS(-DWITH_CINEON)
+ENDIF(WITH_IMAGE_CINEON)
+
+IF(WITH_IMAGE_HDR)
+       ADD_DEFINITIONS(-DWITH_HDR)
+ENDIF(WITH_IMAGE_HDR)
 
 IF(WITH_QUICKTIME)
        SET(INC ${INC} ../../quicktime)
@@ -101,9 +109,9 @@ IF(WITH_LCMS)
        ADD_DEFINITIONS(-DWITH_LCMS)
 ENDIF(WITH_LCMS)
 
-IF(NOT WITH_ELBEEM)
+IF(NOT WITH_FLUID)
        ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_ELBEEM)
+ENDIF(NOT WITH_FLUID)
 
 IF(WITH_FFTW3)
        ADD_DEFINITIONS(-DFFTW3=1)
index 6b28c56..6723804 100644 (file)
@@ -97,6 +97,14 @@ ifeq ($(WITH_TIFF),true)
     CPPFLAGS += -DWITH_TIFF
 endif
 
+ifeq ($(WITH_CINEON),true)
+    CPPFLAGS += -DWITH_CINEON
+endif
+
+ifeq ($(WITH_HDR),true)
+    CPPFLAGS += -DWITH_HDR
+endif
+
 ifeq ($(OS),windows)
     # Windows needs these extra libs because of winstuff... It is not 
     # _really_ needed, but it is the easiest fix for now. If you have 
index 8abab7b..3bebffa 100644 (file)
@@ -47,6 +47,12 @@ if env['WITH_BF_OPENJPEG']:
 if env['WITH_BF_DDS']:
        defs.append('WITH_DDS')
 
+if env['WITH_BF_CINEON']:
+       defs.append('WITH_CINEON')
+
+if env['WITH_BF_HDR']:
+       defs.append('WITH_HDR')
+
 if env['WITH_BF_FFMPEG']:
        defs.append('WITH_FFMPEG')
        incs += ' ' + env['BF_FFMPEG_INC']
index 611e4f0..ca38895 100644 (file)
@@ -105,13 +105,17 @@ EnumPropertyItem image_type_items[] = {
        {R_TARGA, "TARGA", ICON_FILE_IMAGE, "Targa", ""},
        {R_RAWTGA, "TARGA_RAW", ICON_FILE_IMAGE, "Targa Raw", ""},
        {0, "", 0, " ", NULL},
+#ifdef WITH_CINEON
        {R_CINEON, "CINEON", ICON_FILE_IMAGE, "Cineon", ""},
        {R_DPX, "DPX",ICON_FILE_IMAGE, "DPX", ""},
+#endif
 #ifdef WITH_OPENEXR
        {R_MULTILAYER, "MULTILAYER", ICON_FILE_IMAGE, "MultiLayer", ""},
        {R_OPENEXR, "OPEN_EXR", ICON_FILE_IMAGE, "OpenEXR", ""},
 #endif
+#ifdef WITH_HDR
        {R_RADHDR, "HDR", ICON_FILE_IMAGE, "Radiance HDR", ""},
+#endif
 #ifdef WITH_TIFF
        {R_TIFF, "TIFF", ICON_FILE_IMAGE, "TIFF", ""},
 #endif
index 51cd522..b6dcc9c 100644 (file)
@@ -40,9 +40,9 @@ SET(INC
        ${ZLIB_INC}
 )
 
-IF(NOT WITH_ELBEEM)
+IF(NOT WITH_FLUID)
        ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_ELBEEM)
+ENDIF(NOT WITH_FLUID)
 
 BLENDERLIB(bf_modifiers "${SRC}" "${INC}")
 
index 05f1d5d..2047ab2 100644 (file)
@@ -38,9 +38,9 @@ IF(WIN32)
        SET(INC ${INC} ${PTHREADS_INC})
 ENDIF(WIN32)
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
 IF(WITH_QUICKTIME)
        SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
index 38ccb56..566bc88 100644 (file)
@@ -101,7 +101,7 @@ IF(UNIX)
                bf_python
                bf_gen_python
                bf_blenlib 
-               bf_cineon 
+               bf_cineon
                bf_openexr 
                extern_libopenjpeg 
                bf_dds
index 72e48c0..e8c53cf 100644 (file)
@@ -52,13 +52,25 @@ IF(WITH_QUICKTIME)
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
-IF(WITH_OPENEXR)
+IF(WITH_IMAGE_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+ENDIF(WITH_IMAGE_OPENEXR)
 
-IF(WITH_TIFF)
+IF(WITH_IMAGE_TIFF)
        ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_TIFF)
+ENDIF(WITH_IMAGE_TIFF)
+
+IF(WITH_IMAGE_DDS)
+       ADD_DEFINITIONS(-DWITH_DDS)
+ENDIF(WITH_IMAGE_DDS)
+
+IF(WITH_IMAGE_CINEON)
+       ADD_DEFINITIONS(-DWITH_CINEON)
+ENDIF(WITH_IMAGE_CINEON)
+
+IF(WITH_IMAGE_HDR)
+       ADD_DEFINITIONS(-DWITH_HDR)
+ENDIF(WITH_IMAGE_HDR)
 
 IF(WITH_PYTHON)
        INCLUDE_DIRECTORIES(../blender/python)
@@ -377,9 +389,9 @@ FILE(READ ${CMAKE_BINARY_DIR}/cmake_blender_libs.txt BLENDER_LINK_LIBS)
 
 SET(BLENDER_LINK_LIBS bf_nodes ${BLENDER_LINK_LIBS} bf_windowmanager blender_render)
 
-IF(WITH_ELBEEM)
+IF(WITH_FLUID)
        SET(BLENDER_LINK_LIBS ${BLENDER_LINK_LIBS} bf_elbeem)
-ENDIF(WITH_ELBEEM)
+ENDIF(WITH_FLUID)
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
        SET(BLENDER_LINK_LIBS ${BLENDER_LINK_LIBS} extern_binreloc)
index 34ebc5f..bfbb217 100644 (file)
@@ -73,4 +73,12 @@ ifeq ($(WITH_TIFF), true)
   CPPFLAGS += -DWITH_TIFF
 endif
 
+ifeq ($(WITH_CINEON), true)
+  CPPFLAGS += -DWITH_CINEON
+endif
+
+ifeq ($(WITH_HDR), true)
+  CPPFLAGS += -DWITH_HDR
+endif
+
 CPPFLAGS += -I$(OPENGL_HEADERS)
index 415f106..05359b0 100644 (file)
@@ -559,7 +559,9 @@ static int set_image_type(int argc, char **argv, void *data)
                        else if (!strcmp(imtype,"AVICODEC")) scene->r.imtype = R_AVICODEC;
                        else if (!strcmp(imtype,"QUICKTIME")) scene->r.imtype = R_QUICKTIME;
                        else if (!strcmp(imtype,"BMP")) scene->r.imtype = R_BMP;
+#ifdef WITH_HDR
                        else if (!strcmp(imtype,"HDR")) scene->r.imtype = R_RADHDR;
+#endif
 #ifdef WITH_TIFF
                        else if (!strcmp(imtype,"TIFF")) scene->r.imtype = R_TIFF;
 #endif
@@ -569,8 +571,10 @@ static int set_image_type(int argc, char **argv, void *data)
 #endif
                        else if (!strcmp(imtype,"MPEG")) scene->r.imtype = R_FFMPEG;
                        else if (!strcmp(imtype,"FRAMESERVER")) scene->r.imtype = R_FRAMESERVER;
+#ifdef WITH_CINEON
                        else if (!strcmp(imtype,"CINEON")) scene->r.imtype = R_CINEON;
                        else if (!strcmp(imtype,"DPX")) scene->r.imtype = R_DPX;
+#endif
 #if WITH_OPENJPEG
                        else if (!strcmp(imtype,"JP2")) scene->r.imtype = R_JP2;
 #endif