Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SConscript « libopenjpeg « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d14b8329580a6aa021e5f5a7a1e8abda09d53d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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)