File: SConscript

package info (click to toggle)
blender 2.63a-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 108,940 kB
  • sloc: ansic: 781,340; cpp: 453,049; python: 133,391; xml: 4,140; sh: 573; makefile: 112; lisp: 69
file content (28 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
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
#!/usr/bin/python

import sys

Import('env')

sources = env.Glob('*.c')

incs = '.'
flags = []
defs = []

if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
    flags = []
    defs.append('OPJ_STATIC')
else:
    flags = ['-Wall', '-O3', '-ffast-math', '-std=c99']

oj_env = env.Clone()
if not env['OURPLATFORM'] in ('win32-vc', 'win64-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','player'],
                    priority=[10,185], compileflags = flags)