Windows Libs: move OpenEXR headers to same directory structure as other platforms.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 19 Nov 2012 16:02:29 +0000 (16:02 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 19 Nov 2012 16:02:29 +0000 (16:02 +0000)
CMakeLists.txt
build_files/scons/config/win32-vc-config.py
build_files/scons/config/win64-vc-config.py
source/blender/imbuf/intern/openexr/CMakeLists.txt
source/blender/imbuf/intern/openexr/openexr_api.cpp

index a411a4f69e64fbb743c5f67eb7461677fdd12161..760b5ba49cccff104b4a2baa1460c48f60e6c13b 100644 (file)
@@ -1046,6 +1046,7 @@ elseif(WIN32)
                if(WITH_IMAGE_OPENEXR)
                        set_lib_path(OPENEXR "openexr")
                        set(OPENEXR_INCLUDE_DIR ${OPENEXR}/include)
+                       set(OPENEXR_INCLUDE_DIRS ${OPENEXR}/include/OpenEXR)
                        set(OPENEXR_LIBPATH ${OPENEXR}/lib)
                        set(OPENEXR_LIBRARIES
                                ${OPENEXR_LIBPATH}/Iex.lib
@@ -1054,12 +1055,6 @@ elseif(WIN32)
                                ${OPENEXR_LIBPATH}/Imath.lib
                                ${OPENEXR_LIBPATH}/IlmThread.lib
                        )
-                       set(OPENEXR_INCLUDE_DIRS
-                               ${OPENEXR_INCLUDE_DIR}
-                               ${OPENEXR_INCLUDE_DIR}/IlmImf
-                               ${OPENEXR_INCLUDE_DIR}/Iex
-                               ${OPENEXR_INCLUDE_DIR}/Imath
-                       )
                endif()
 
                if(WITH_IMAGE_TIFF)
index 93174c4330d7b3dd74ec6635ee972eaa76907462..6983f63b3f905ac89704ccaba479032095d2b2c0 100644 (file)
@@ -54,7 +54,7 @@ BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
 WITH_BF_OPENEXR = True
 WITH_BF_STATICOPENEXR = False
 BF_OPENEXR = LIBDIR + '/openexr'
-BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
+BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR '
 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread '
 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
 BF_OPENEXR_LIB_STATIC = '${BF_OPENEXR}/lib/libHalf.a ${BF_OPENEXR}/lib/libIlmImf.a ${BF_OPENEXR}/lib/libIex.a ${BF_OPENEXR}/lib/libImath.a ${BF_OPENEXR}/lib/libIlmThread.a'
index 2d1c59c5db92d400fb15a0ae8ff71457f882dd04..979c26a3a49d091cea0fcfbe8d08d45806b6429a 100644 (file)
@@ -50,7 +50,7 @@ BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
 WITH_BF_OPENEXR = True
 WITH_BF_STATICOPENEXR = False
 BF_OPENEXR = LIBDIR + '/openexr'
-BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
+BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR '
 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread '
 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
 BF_OPENEXR_LIB_STATIC = '${BF_OPENEXR}/lib/libHalf.a ${BF_OPENEXR}/lib/libIlmImf.a ${BF_OPENEXR}/lib/libIex.a ${BF_OPENEXR}/lib/libImath.a ${BF_OPENEXR}/lib/libIlmThread.a'
index d5cb8e8a3b6cf7884aa537c670f8296d5db177af..6c428afe535bd5e869e31becbeeb86f5ad08b448 100644 (file)
@@ -52,4 +52,6 @@ if(WITH_IMAGE_OPENEXR)
        add_definitions(-DWITH_OPENEXR)
 endif()
 
+message(STATUS "EXR ${INC_SYS}")
+
 blender_add_lib(bf_imbuf_openexr "${SRC}" "${INC}" "${INC_SYS}")
index 5d2632ec0d794d58ba6a7ec3846f6e8284f6bb1a..da7b31cc2baac6212d0315cfc405798e87ff32c0 100644 (file)
@@ -72,21 +72,6 @@ _CRTIMP void __cdecl _invalid_parameter_noinfo(void)
 
 #include <iostream>
 
-#if defined(_WIN32) && !defined(FREE_WINDOWS)
-#include <half.h>
-#include <Iex/Iex.h>
-#include <IlmImf/ImfVersion.h>
-#include <IlmImf/ImfArray.h>
-#include <IlmImf/ImfIO.h>
-#include <IlmImf/ImfChannelList.h>
-#include <IlmImf/ImfPixelType.h>
-#include <IlmImf/ImfInputFile.h>
-#include <IlmImf/ImfOutputFile.h>
-#include <IlmImf/ImfCompression.h>
-#include <IlmImf/ImfCompressionAttribute.h>
-#include <IlmImf/ImfStringAttribute.h>
-#include <Imath/ImathBox.h>
-#else
 #include <half.h>
 #include <Iex.h>
 #include <ImfVersion.h>
@@ -100,7 +85,6 @@ _CRTIMP void __cdecl _invalid_parameter_noinfo(void)
 #include <ImfCompression.h>
 #include <ImfCompressionAttribute.h>
 #include <ImfStringAttribute.h>
-#endif
 
 using namespace Imf;
 using namespace Imath;