Patch 5105 by Joshua Leung (Aligorith), slightly modified by me
[blender.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 #/intern/memutil'
9 incs += ' ../blenlib ../makesdna ../blenkernel'
10 incs += ' ../include #/intern/bmfont ../imbuf ../render/extern/include'
11 incs += ' #/intern/bsp/extern ../radiosity/extern/include'
12 incs += ' #/intern/decimation/extern ../blenloader ../python'
13 incs += ' ../../kernel/gen_system #/intern/SoundSystem ../readstreamglue'
14 incs += ' ../quicktime #/intern/elbeem/extern'
15 incs += ' #/intern/ghost #/intern/opennl/extern'
16
17 incs += ' ' + env['BF_PYTHON_INC']
18 incs += ' ' + env['BF_SDL_INC']
19 incs += ' ' + env['BF_OPENGL_INC']
20
21 defs = []
22
23 if env['WITH_BF_YAFRAY'] == 0:
24     defs.append('DISABLE_YAFRAY')
25
26 if env['WITH_BF_INTERNATIONAL'] == 1:
27     incs += ' ../ftfont'
28     defs.append('INTERNATIONAL')
29     defs.append('FTGL_STATIC_LIBRARY')
30
31 if env['WITH_BF_OPENEXR'] == 1:
32     defs.append('WITH_OPENEXR')
33
34 if env['WITH_BF_QUICKTIME']==1:
35     incs += ' ' + env['BF_QUICKTIME_INC']
36     defs.append('WITH_QUICKTIME')
37
38 if env['WITH_BF_FFMPEG'] == 1:
39     defs.append('WITH_FFMPEG')
40     incs += ' ' + env['BF_FFMPEG_INC']
41
42 if env['WITH_BF_VERSE']:
43     defs.append('WITH_VERSE')
44     incs += ' ' + env['BF_VERSE_INCLUDE']
45
46 # TODO buildinfo
47 if env['BF_BUILDINFO'] == 1:
48     defs.append('NAN_BUILDINFO')
49
50 env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] )