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

SConscript « src « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 415e5ac4be48ebb12214932c33ad03e599f20a97 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/python
Import ('env')

# TODO: src_env.Append (CCFLAGS = user_options_dict['SDL_CFLAGS'])

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

incs = ' #/intern/guardedalloc #/intern/memutil'
incs += ' ../blenlib ../makesdna ../blenkernel'
incs += ' ../include #/intern/bmfont ../imbuf ../render/extern/include'
incs += ' #/intern/bsp/extern ../radiosity/extern/include'
incs += ' #/intern/decimation/extern ../blenloader ../python'
incs += ' ../../kernel/gen_system #/intern/SoundSystem ../readstreamglue ../nodes'
incs += ' ../quicktime #/intern/elbeem/extern'
incs += ' #/intern/ghost #/intern/opennl/extern'


incs += ' ' + env['BF_PYTHON_INC']
incs += ' ' + env['BF_SDL_INC']
incs += ' ' + env['BF_OPENGL_INC']

defs = []

if env['BF_TWEAK_MODE'] == 1:
    defs.append('TWEAK_MODE')

if env['WITH_BF_YAFRAY'] == 0:
    defs.append('DISABLE_YAFRAY')

if env['WITH_BF_INTERNATIONAL'] == 1:
    incs += ' ../ftfont'
    defs.append('INTERNATIONAL')
    defs.append('FTGL_STATIC_LIBRARY')

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

if env['WITH_BF_DDS'] == 1:
    defs.append('WITH_DDS')

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

if env['WITH_BF_ICONV'] == 1:
    incs += ' ' + env['BF_ICONV_INC']
    defs.append('WITH_ICONV')

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

if env['WITH_BF_VERSE']:
    defs.append('WITH_VERSE')
    incs += ' ' + env['BF_VERSE_INCLUDE']

# TODO buildinfo
if env['BF_BUILDINFO'] == 1:
    defs.append('NAN_BUILDINFO')

env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] )