Files
test2/extern/libopenjpeg/SConscript
Campbell Barton f87194820b openjpeg contained a C file with a main() function, user reported it was overriding blenderplayers.
remove this file from building, other build systems should do this too.
2009-02-26 04:40:00 +00:00

32 lines
729 B
Python

#!/usr/bin/python
import sys
Import('env')
sources = env.Glob('*.c')
# This file contains a main() - can override blenders
sources.remove('t1_generate_luts.c')
incs = '.'
flags = []
defs = []
if env['OURPLATFORM'] == 'win32-vc':
flags = []
defs.append('OPJ_STATIC')
else:
flags = ['-Wall', '-O3', '-ffast-math', '-std=c99']
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=defs,
libtype=['core','intern','player'],
priority=[300, 300, 300], compileflags = flags)