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:
Diffstat (limited to 'extern/libopenjpeg/SConscript')
-rw-r--r--extern/libopenjpeg/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/extern/libopenjpeg/SConscript b/extern/libopenjpeg/SConscript
index decdd8b5a3d..14b7102cbcd 100644
--- a/extern/libopenjpeg/SConscript
+++ b/extern/libopenjpeg/SConscript
@@ -6,9 +6,12 @@ Import('env')
sources = env.Glob('*.c')
incs = '.'
+flags = []
+defs = []
if env['OURPLATFORM'] == 'win32-vc':
flags = []
+ defs.append('OPJ_STATIC')
else:
flags = ['-Wall', '-O3', '-ffast-math', '-std=c99']
@@ -19,6 +22,6 @@ if not env['OURPLATFORM'] == 'win32-vc':
oj_env.BlenderLib ( libname='extern_openjpeg',
sources=sources, includes=Split(incs),
- defines=[],
+ defines=defs,
libtype=['extern'],
priority=[10], compileflags = flags)