Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/win32-vc-config.py5
-rw-r--r--extern/libopenjpeg/SConscript14
-rw-r--r--extern/libredcode/SConscript14
-rw-r--r--extern/libredcode/format.c5
-rw-r--r--source/blender/imbuf/intern/IMB_anim.h6
-rw-r--r--source/blender/imbuf/intern/anim.c9
6 files changed, 32 insertions, 21 deletions
diff --git a/config/win32-vc-config.py b/config/win32-vc-config.py
index a5aa76c2868..9a41f7ee557 100644
--- a/config/win32-vc-config.py
+++ b/config/win32-vc-config.py
@@ -150,6 +150,11 @@ BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
BF_QUICKTIME_LIB = 'qtmlClient'
BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
+WITH_BF_OPENJPEG = True
+
+WITH_BF_REDCODE = False
+BF_REDCODE_INC = '#extern'
+
WITH_BF_STATICOPENGL = False
BF_OPENGL_INC = '${BF_OPENGL}/include'
BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
diff --git a/extern/libopenjpeg/SConscript b/extern/libopenjpeg/SConscript
index f0a93f6e2d9..7100ecb37fd 100644
--- a/extern/libopenjpeg/SConscript
+++ b/extern/libopenjpeg/SConscript
@@ -7,14 +7,18 @@ Import('env')
sources = env.Glob('*.c')
incs = '.'
-flags = "-Wall -O3 -ffast-math -std=c99"
+if env['OURPLATFORM'] == 'win32-vc':
+ flags = []
+else:
+ flags = ['-Wall', '-O3', '-ffast-math', '-std=c99']
-oj_env = env.Copy();
-oj_env.Replace(CCFLAGS = '')
-oj_env.Replace(BF_DEBUG_FLAGS = '')
+oj_env = env.Clone()
+if not env['OURPLATFORM'] == 'win32-vc':
+ oj_env.Replace(CCFLAGS = '')
+ oj_env.Replace(BF_DEBUG_FLAGS = '')
oj_env.BlenderLib ( libname='extern_openjpeg',
sources=sources, includes=Split(incs),
defines=[],
libtype=['core','intern','player'],
- priority=[10, 10, 300], compileflags = Split(flags))
+ priority=[5, 10, 200], compileflags = flags)
diff --git a/extern/libredcode/SConscript b/extern/libredcode/SConscript
index 4e83ba5cbb4..b58e6d5fe25 100644
--- a/extern/libredcode/SConscript
+++ b/extern/libredcode/SConscript
@@ -9,20 +9,8 @@ Import('env')
sources = env.Glob('*.c')
incs = '. ../libopenjpeg'
-root = "extern/libredcode"
-
-if not os.path.isdir(root + "/include"):
- os.mkdir(root + "/include");
-if not os.path.isdir(root + "/include/redcode"):
- os.mkdir(root + "/include/redcode");
-
-for h in env.Glob('*.h'):
- shutil.copyfile(root + "/" + h,
- root + "/include/redcode/" + h)
-
-
env.BlenderLib ( libname='extern_redcode',
sources=sources, includes=Split(incs),
defines=[],
libtype=['core','intern','player'],
- priority=[5, 5, 200], compileflags = [])
+ priority=[10, 5, 300], compileflags = [])
diff --git a/extern/libredcode/format.c b/extern/libredcode/format.c
index 35410e9e269..4677c49b8a5 100644
--- a/extern/libredcode/format.c
+++ b/extern/libredcode/format.c
@@ -1,4 +1,9 @@
+#ifdef _WIN32
+#include <Winsock2.h>
+#else
#include <netinet/in.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/source/blender/imbuf/intern/IMB_anim.h b/source/blender/imbuf/intern/IMB_anim.h
index 7dc1f966b71..745248d3218 100644
--- a/source/blender/imbuf/intern/IMB_anim.h
+++ b/source/blender/imbuf/intern/IMB_anim.h
@@ -82,7 +82,11 @@
#endif
#ifdef WITH_REDCODE
-#include <redcode/format.h>
+#ifdef _WIN32 /* on windows we use the one in extern instead */
+#include "libredcode/format.h"
+#else
+#include "libredcode/format.h"
+#endif
#endif
#include "IMB_imbuf_types.h"
diff --git a/source/blender/imbuf/intern/anim.c b/source/blender/imbuf/intern/anim.c
index c0e84b73e47..80bf401bec0 100644
--- a/source/blender/imbuf/intern/anim.c
+++ b/source/blender/imbuf/intern/anim.c
@@ -97,8 +97,13 @@
#endif
#ifdef WITH_REDCODE
-#include <redcode/format.h>
-#include <redcode/codec.h>
+#ifdef _WIN32 /* on windows we use the ones in extern instead */
+#include "libredcode/format.h"
+#include "libredcode/codec.h"
+#else
+#include "libredcode/format.h"
+#include "libredcode/codec.h"
+#endif
#endif
/****/