* WITH_BF_GETTEXT and WITH_BF_FREETYPE are merged into WITH_BF_INTERNATIONAL
[blender-staging.git] / source / blender / src / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 # TODO: src_env.Append (CCFLAGS = user_options_dict['SDL_CFLAGS'])
5
6 sources = env.Glob('*.c')
7
8 incs = ' #/intern/guardedalloc ../blenlib ../makesdna ../blenkernel'
9 incs += ' ../include #/intern/bmfont ../imbuf ../render/extern/include'
10 incs += ' #/intern/bsp/extern ../radiosity/extern/include'
11 incs += ' #/intern/decimation/extern ../blenloader ../python'
12 incs += ' ../../kernel/gen_system #/intern/SoundSystem ../readstreamglue'
13 incs += ' ../img ../quicktime #/intern/elbeem/extern'
14 incs += ' #/intern/ghost #/intern/opennl/extern'
15
16 incs += ' ' + env['BF_PYTHON_INC']
17 incs += ' ' + env['BF_SDL_INC']
18 incs += ' ' + env['BF_OPENGL_INC']
19
20 defs = []
21
22 if env['WITH_BF_INTERNATIONAL'] == 1:
23     incs += ' ../ftfont'
24     defs.append('INTERNATIONAL')
25     defs.append('FTGL_STATIC_LIBRARY')
26
27 if env['WITH_BF_OPENEXR'] == 1:
28     defs.append('WITH_OPENEXR')
29
30 if env['WITH_BF_QUICKTIME']==1:
31     incs += ' ' + env['BF_QUICKTIME_INC']
32     defs.append('WITH_QUICKTIME')
33
34 # TODO buildinfo
35 if env['BF_BUILDINFO'] == 1:
36     defs.append('NAN_BUILDINFO')
37
38 env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] )