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

SConscript « render « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d06331a5b48221c59f6079a6b4433110bd4e8515 (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 ('env')

cflags=''
sources = env.Glob('intern/source/*.c')

incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna'
incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
incs += ' ../quicktime ../editors/include ../../kernel/gen_messaging'

defs = []

if env['WITH_BF_YAFRAY'] == 1:
	incs += ' ../yafray'
else:
	defs.append('DISABLE_YAFRAY')

if env['WITH_BF_QUICKTIME'] == 1:
	defs.append('WITH_QUICKTIME')
	incs += ' ' + env['BF_QUICKTIME_INC']

if env['WITH_BF_FFMPEG'] == 1:
	defs.append('WITH_FFMPEG')

if env['WITH_BF_OPENEXR']:
	defs.append('WITH_OPENEXR')

if env['OURPLATFORM']=='linux2':
	cflags='-pthread'

env.BlenderLib ( libname = 'bf_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=55, compileflags=cflags )