4
4
sources = env.Glob('intern/*.c')
6
6
incs = '. #/intern/guardedalloc ../include ../blenlib ../makesdna'
7
incs += ' ../python ../render/extern/include #/intern/decimation/extern'
7
incs += ' ../render/extern/include #/intern/decimation/extern'
8
8
incs += ' ../imbuf ../avi #/intern/elbeem/extern ../nodes'
9
incs += ' #/intern/iksolver/extern ../blenloader ../quicktime'
9
incs += ' #/intern/iksolver/extern ../blenloader'
10
10
incs += ' #/extern/bullet2/src'
11
11
incs += ' #/intern/bmfont'
12
12
incs += ' #/intern/opennl/extern'
13
13
incs += ' ../gpu #/extern/glew/include'
15
incs += ' ' + env['BF_PYTHON_INC']
16
15
incs += ' ' + env['BF_OPENGL_INC']
17
16
incs += ' ' + env['BF_ZLIB_INC']
18
incs += ' ' + env['BF_SDL_INC']
20
if not env['WITH_BF_PYTHON']:
21
defs.append('DISABLE_PYTHON')
24
incs += ' ' + env['BF_PYTHON_INC']
28
if env['WITH_BF_QUICKTIME']:
29
incs += ' ../quicktime'
31
if env['WITH_BF_SDL']:
32
incs += ' ' + env['BF_SDL_INC']
34
defs.append('DISABLE_SDL')
22
36
if env['WITH_BF_INTERNATIONAL']:
23
defs += 'WITH_FREETYPE2'
37
defs.append('WITH_FREETYPE2')
25
39
if env['WITH_BF_VERSE']:
40
defs.append('WITH_VERSE')
27
41
incs += ' ' + env['BF_VERSE_INCLUDE']
29
43
if env['WITH_BF_VERSE']:
44
defs.append('WITH_VERSE')
32
46
if env['WITH_BF_OPENEXR']:
33
defs += ' WITH_OPENEXR'
47
defs.append('WITH_OPENEXR')
49
if env['WITH_BF_OPENJPEG']:
50
defs.append('WITH_OPENJPEG')
35
52
if env['WITH_BF_DDS']:
53
defs.append('WITH_DDS')
38
55
if env['WITH_BF_FFMPEG']:
39
defs += ' WITH_FFMPEG'
40
incs += ' ' + env['BF_FFMPEG_INC']
56
defs.append('WITH_FFMPEG')
57
incs += ' ' + env['BF_FFMPEG_INC']
42
59
if env['WITH_BF_QUICKTIME']:
43
defs += ' WITH_QUICKTIME'
44
incs += ' ' + env['BF_QUICKTIME_INC']
60
defs.append('WITH_QUICKTIME')
61
incs += ' ' + env['BF_QUICKTIME_INC']
63
if env['WITH_BF_BULLET']:
64
defs.append('WITH_BULLET')
46
66
if env['BF_NO_ELBEEM']:
47
defs += ' DISABLE_ELBEEM'
67
defs.append('DISABLE_ELBEEM')
49
69
if env['WITH_BF_PLAYER']:
50
SConscript(['bad_level_call_stubs/SConscript'])
70
SConscript(['bad_level_call_stubs/SConscript'])
52
env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype=['core','player'], priority = [65, 20] )
72
env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [65, 20] )