2008-06-02 21:35:57 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
incs = '.'
|
|
|
|
|
2008-11-04 23:04:15 +00:00
|
|
|
if env['OURPLATFORM'] == 'win32-vc':
|
|
|
|
flags = []
|
|
|
|
else:
|
|
|
|
flags = ['-Wall', '-O3', '-ffast-math', '-std=c99']
|
2008-06-02 21:35:57 +00:00
|
|
|
|
2008-11-04 23:04:15 +00:00
|
|
|
oj_env = env.Clone()
|
|
|
|
if not env['OURPLATFORM'] == 'win32-vc':
|
|
|
|
oj_env.Replace(CCFLAGS = '')
|
|
|
|
oj_env.Replace(BF_DEBUG_FLAGS = '')
|
2008-06-02 21:35:57 +00:00
|
|
|
|
|
|
|
oj_env.BlenderLib ( libname='extern_openjpeg',
|
|
|
|
sources=sources, includes=Split(incs),
|
|
|
|
defines=[],
|
|
|
|
libtype=['core','intern','player'],
|
2008-11-04 23:46:01 +00:00
|
|
|
priority=[10, 10, 300], compileflags = flags)
|