forked from bartvdbraak/blender
d52400bfbd
Notes: * Sequence transform strip uses G.scene global, this is commented out now, should be fixed. * Etch-a-ton code was most difficult to merge. The files already in 2.5 got merged, but no new files were added. Calls to these files are commented out with "XXX etch-a-ton". editarmature.c and transform_snap.c were complex to merge. Martin, please check? * Game engine compiles and links again here for scons/make/cmake (player still fails to link).
29 lines
610 B
Python
29 lines
610 B
Python
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
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']
|
|
|
|
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=['extern'],
|
|
priority=[10], compileflags = flags)
|