* enable openjpeg building for win32/msvc
* add support for building redcode on win32/msvc, but disabled for now, as there are linking problems - I cleaned the redcode sconscript - the copying of headers within the source tree is not a clean solution This needs to be fixed later on. For now, lets use redcode from extern/ until a better way is found.
This commit is contained in:
@@ -150,6 +150,11 @@ BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
|
|||||||
BF_QUICKTIME_LIB = 'qtmlClient'
|
BF_QUICKTIME_LIB = 'qtmlClient'
|
||||||
BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
|
BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
|
||||||
|
|
||||||
|
WITH_BF_OPENJPEG = True
|
||||||
|
|
||||||
|
WITH_BF_REDCODE = False
|
||||||
|
BF_REDCODE_INC = '#extern'
|
||||||
|
|
||||||
WITH_BF_STATICOPENGL = False
|
WITH_BF_STATICOPENGL = False
|
||||||
BF_OPENGL_INC = '${BF_OPENGL}/include'
|
BF_OPENGL_INC = '${BF_OPENGL}/include'
|
||||||
BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
|
BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
|
||||||
|
10
extern/libopenjpeg/SConscript
vendored
10
extern/libopenjpeg/SConscript
vendored
@@ -7,9 +7,13 @@ Import('env')
|
|||||||
sources = env.Glob('*.c')
|
sources = env.Glob('*.c')
|
||||||
incs = '.'
|
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 = env.Clone()
|
||||||
|
if not env['OURPLATFORM'] == 'win32-vc':
|
||||||
oj_env.Replace(CCFLAGS = '')
|
oj_env.Replace(CCFLAGS = '')
|
||||||
oj_env.Replace(BF_DEBUG_FLAGS = '')
|
oj_env.Replace(BF_DEBUG_FLAGS = '')
|
||||||
|
|
||||||
@@ -17,4 +21,4 @@ oj_env.BlenderLib ( libname='extern_openjpeg',
|
|||||||
sources=sources, includes=Split(incs),
|
sources=sources, includes=Split(incs),
|
||||||
defines=[],
|
defines=[],
|
||||||
libtype=['core','intern','player'],
|
libtype=['core','intern','player'],
|
||||||
priority=[10, 10, 300], compileflags = Split(flags))
|
priority=[5, 10, 200], compileflags = flags)
|
||||||
|
14
extern/libredcode/SConscript
vendored
14
extern/libredcode/SConscript
vendored
@@ -9,20 +9,8 @@ Import('env')
|
|||||||
sources = env.Glob('*.c')
|
sources = env.Glob('*.c')
|
||||||
incs = '. ../libopenjpeg'
|
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',
|
env.BlenderLib ( libname='extern_redcode',
|
||||||
sources=sources, includes=Split(incs),
|
sources=sources, includes=Split(incs),
|
||||||
defines=[],
|
defines=[],
|
||||||
libtype=['core','intern','player'],
|
libtype=['core','intern','player'],
|
||||||
priority=[5, 5, 200], compileflags = [])
|
priority=[10, 5, 300], compileflags = [])
|
||||||
|
5
extern/libredcode/format.c
vendored
5
extern/libredcode/format.c
vendored
@@ -1,4 +1,9 @@
|
|||||||
|
#ifdef _WIN32
|
||||||
|
#include <Winsock2.h>
|
||||||
|
#else
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@@ -82,7 +82,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_REDCODE
|
#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
|
#endif
|
||||||
|
|
||||||
#include "IMB_imbuf_types.h"
|
#include "IMB_imbuf_types.h"
|
||||||
|
@@ -97,8 +97,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_REDCODE
|
#ifdef WITH_REDCODE
|
||||||
#include <redcode/format.h>
|
#ifdef _WIN32 /* on windows we use the ones in extern instead */
|
||||||
#include <redcode/codec.h>
|
#include "libredcode/format.h"
|
||||||
|
#include "libredcode/codec.h"
|
||||||
|
#else
|
||||||
|
#include "libredcode/format.h"
|
||||||
|
#include "libredcode/codec.h"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****/
|
/****/
|
||||||
|
Reference in New Issue
Block a user