Fix second part #32377: saving/loading exr files to file paths with non-ascii
[blender.git] / source / blender / imbuf / intern / openexr / SConscript
index 30757db1cef83a8ef426aafc0958a8b8b93d63a9..a6c5ad984e2f14b644bcb6caf01d89a82ce03eaa 100644 (file)
@@ -4,15 +4,20 @@ Import ('env')
 source_files = ['openexr_api.cpp']
 
 incs = ['.',
-       '../../../blenkernel',
-       '../../',
-       '..',
-       '../../../blenlib',
-       'intern/include',
-       '#/intern/guardedalloc',
-       '../../../makesdna']
+    '../../../blenkernel',
+    '../../',
+    '..',
+    '../../../blenlib',
+    'intern/include',
+    '#/intern/guardedalloc',
+    '../../../makesdna',
+    '#/intern/utfconv']
+
 incs += Split(env['BF_OPENEXR_INC'])
 
 defs = ['WITH_OPENEXR']
 
-env.BlenderLib ('bf_openexr', source_files, incs, defs, libtype=['core','player'], priority = [225, 85])
+if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
+    incs.append(env['BF_PTHREADS_INC'])
+
+env.BlenderLib ('bf_imbuf_openexr', source_files, incs, defs, libtype=['core','player'], priority = [225,180])