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 e249f25230051717ab8e481674eea0683e0a4e14..de736b2b746ed7ebbf68ff95c34c7f3ff9603032 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 eefef3cf5028df78b30f728e2c3a05b4bc1b167e..1f67f79f10b25e9edd685b58d03c4280902213cc 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 1aa9ee3f62ead08e1d897b905537bd9fdd686a49..22c090342ef7b4b8a8d74025ddc1500697c48668 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 d14bdb0a13cb79f91447b5ac8f3058398fd56e48..cc745828b7149d01ba3036c3012deb83b2320516 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 93f3795b916972c6af990873829bd05f809d28d9..c930c150cb6f8af29a9916615b18ea20e8c01c26 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 35271d24a2d4945bdc1f20fd73e4fbf155c75ed7..b15c8a31c730a15eb706770a1de3e8176ec83dcf 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 a370118f061a5dc766bfadf535b881e0cbdb2154..d64029a66718313e8d6bb8f8ef180cab485e0363 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 12e47ba586392fbb2873163f264a054161f0a8bf..e0c39bff368b059b5110043c57302e4286585cb0 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 164377373027a6d4ce6692f2379fa126be910150..96d1ce3e8b21bfd5fac8893f0071d88e84203d12 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 98e8ad73199a41ae670c432660621423386b3adb..549725a57a07ae95c59097d5650f63a49c890d11 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 bcd60154379efaefd53b9158a70cef088be37068..fbd75a79fd7eea49e604647d4b2524471c9731c0 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 a6705653769d9659a2649cdd4cee8cf662fa0f4d..9f5027f801df181d8a627b02fc2a7f62d90c1a14 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 15c022592f9a3f462f79c3ec62d879794b1fb73e..7a4eb52326abb318f51abb3623b41879157a9229 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 77607ae25b6ad55fadad433368c6674cf54d2d26..d2612e909451a07862843f5bdfb1f3f7ec396cd2 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 ebe3f91350831da64eb93654c4b25852e1b4c4c2..be826654311b0d7b6afa7a0c91c745902cbd3abf 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 021e25953b0b2e3fe1c13dc18aac5e4dc6d795ec..5cbe9bbe0ba395ab5bf447148912f51140ab8415 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 29548b51222d2bfda7e186d48dfe93b438b8b022..48f6879b02934c1799ebc27a072fcae8e2915f51 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 f31b8a4b05f19f83091873f6763623407f764182..a6668d9a5fef7f1556c241322b64d20306480055 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 05efdc125966119e824c1a5bc57e22ef67096b9c..131e9fa0e144ad39ae3402d9984d1489393a579a 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 71eebdb9b1e89513b3bad15557166a5c8f22ca22..f644338d39df5f8a95ca0d8ed89270d175e7ab19 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 4f532166bc73380c126b571b71806a12bf857459..cde31085d80ff8981d338f677c7d05f8897c63f4 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 d69c34ad2596a979220ee1495a1544a0d29405b7..4246516b5bcb5076a70184ecaaf5081e456c0bb8 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 57f7e830f4162542e05a545927f0e670f47d6146..49886bdc46f0925d3e77bb2a9ef2c2821081ac70 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 e0dcc344016e88e53f64b77a085806f7f002724e..7408a43ee651940522a1af3684a93c5e6c17d389 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 439cdecdf5b065d94e79ea8839512d6cdbe4360c..6b3360a16c5f8dce8cc9382c12d1fea3cae99a7e 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 5f8029ddf72dcf826f45005c86f9b3ee7929602d..f3fa17385fea723e53f208b50feb4252ac7f4471 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 64a37e03a8845dc5d94cfb253518c6abcf47e114..376dd3d61f44e20c0b44139abfdcc4b884f8a06f 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 c2140e120132e3309b0a6afa856c8f4980a2c7d2..db2eef759dc80188200e735c1b33c1f798177e01 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 1a098c89aa43f7a5054e85f3bb351b2213f0657a..cfc977ff155537f052b51234a50fe3349f825b31 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 dabb6780ea399a95aff9399053bacc9ad2b772b3..a0942c281e3c7cb4384cb5342e4c8beadfe02c98 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 e6f4e226caa0b6740604d2dd6876de876e505317..726a8fe2f3623349a49ab3175ff52e85ef555957 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 984aa5a67051016a46943f69ea2332989a5171fd..f9e570a39c73fe1b8c9cc41e918106530c3d3020 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 9d65522993d9d9c1098aa6e44a9d84be10ea02e9..7ac76c4d107e6611bc330a123b920fb9a25945b1 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 72eb2069bc8180c445c997ff7afbc6707bd464fa..9dbb2fd00aa491d06df30e9609ec71901476edd8 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 6b28c56105b6a794531ecac543634c153418504a..67238045be81e52c4b14ec4d3ad96799cf7f304e 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 8abab7ba2944c93af3ffd2f0985dd543ec7939e4..3bebffaddecf10a1c57ad2c3f1d2f8b20b402c80 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 611e4f02b43b3a6496f404c199530ac3a35af0c1..ca388951e68de9c8e31263134f4704be2792c623 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 51cd5223cf5cfa8db8123311c24cf0e56e204390..b6dcc9c03f96dee728443f12e4ad7afece780e68 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 05f1d5d4bd9a935a29f56f5a3e9251c65ffd372d..2047ab29d2446296ec19f9b5f5858560a9f4c018 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 38ccb56c4103f228a7b971c8f5f89b40cb6a80d8..566bc88e46dc2fdec14bb89a3bdc7b4f1c6dca49 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 72e48c0893e4506446cfd3d84e0371e839a4206e..e8c53cf0374af4e3967c4a637f6f8d253303bf97 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 34ebc5fa3055188a75212fdee81fc96dc97b52ff..bfbb2173cffc9f0f26ed927a3c6430edfdb14dae 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 415f1064dbb6a040e968158af615c6940b0eaacb..05359b0611210bddabd0f723322aa1cdadfaf009 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