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

SConscript « creator « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82059c846e6b4b025374bfcc0efb83ea03082856 (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
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/python
Import ('env')

sources = ['creator.c']

if env['WITH_BF_UNIT_TEST']:
	sources += env.Glob('tests/*.c')

incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
incs += ' ../blender/makesdna ../blender/makesrna ../kernel/gen_messaging'
incs += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu'
incs += ' ' + env['BF_OPENGL_INC']

defs = []

if env['WITH_BF_UNIT_TEST']:
	defs.append('WITH_UNIT_TEST')

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

if env['WITH_BF_BINRELOC']:
	incs += ' ../../extern/binreloc/include'
	defs.append('WITH_BINRELOC')

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

if not env['WITH_BF_SDL']:
	defs.append('DISABLE_SDL')

if env['WITH_BF_PYTHON']:
	incs += ' ../blender/python'
	if env['BF_DEBUG']:
		defs.append('_DEBUG')
else:
	defs.append('DISABLE_PYTHON')

env.BlenderLib ( libname = 'bf_creator', sources = sources, includes = Split(incs), defines = defs, libtype='core', priority = 0 )