Tuesday merger of bf-blender into orange branch.
[blender-staging.git] / source / nan_definitions.mk
index 93a0557ab783b1339c1016b77593d84b1407269c..aac81a3dbfceb3a490bb372e4ffad0232ca43e95 100644 (file)
@@ -96,6 +96,22 @@ endif
       export NAN_FTGL ?= $(LCGDIR)/ftgl
     endif
 
+    export WITH_OPENEXR ?= true
+    ifeq ($(OS),windows)
+      ifeq ($(FREE_WINDOWS), true)
+        export NAN_OPENEXR ?= $(LCGDIR)/gcc/openexr
+        export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
+        export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
+      else
+        export NAN_OPENEXR ?= $(LCGDIR)/openexr
+        export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/IlmImf.lib $(NAN_OPENEXR)/lib/Half.lib $(NAN_OPENEXR)/lib/Iex.lib
+        export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/IlmImf -I$(NAN_OPENEXR)/include/Imath -I$(NAN_OPENEXR)/include/Iex
+      endif
+    else
+      export NAN_OPENEXR ?= /usr/local
+      export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
+      export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
+    endif
   # Platform Dependent settings go below:
 
   ifeq ($(OS),beos)