* tweak linking priorities - should help for GCC users
[blender.git] / source / blender / blenkernel / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('intern/*.c')
5
6 incs = '. #/intern/guardedalloc ../editors/include ../blenlib ../makesdna'
7 incs += ' ../python ../render/extern/include #/intern/decimation/extern'
8 incs += ' ../imbuf ../avi #/intern/elbeem/extern ../nodes'
9 incs += ' #/intern/iksolver/extern ../blenloader ../quicktime'
10 incs += ' #/intern/bmfont'
11
12 incs += ' ' + env['BF_OPENGL_INC']
13 incs += ' ' + env['BF_ZLIB_INC']
14 incs += ' ' + env['BF_SDL_INC']
15
16 defs = ''
17
18 if env['WITH_BF_INTERNATIONAL']:
19         defs += 'WITH_FREETYPE2'
20
21 if env['WITH_BF_VERSE']:
22         defs += ' WITH_VERSE'
23         incs += ' ' + env['BF_VERSE_INCLUDE']
24
25 if env['WITH_BF_VERSE']:
26         defs += ' WITH_VERSE'
27         
28 if env['WITH_BF_OPENEXR'] == 1:
29         defs += ' WITH_OPENEXR'
30
31 if env['WITH_BF_DDS'] == 1:
32         defs += ' WITH_DDS'
33
34 if env['WITH_BF_FFMPEG'] == 1:
35         defs += ' WITH_FFMPEG'
36         incs += ' ' + env['BF_FFMPEG_INC']
37
38 if env['WITH_BF_QUICKTIME'] == 1:
39         defs += ' WITH_QUICKTIME'
40         incs += ' ' + env['BF_QUICKTIME_INC']
41
42 defs += ' WITH_CCGSUBSURF'
43
44 if env['WITH_BF_PLAYER']:
45         SConscript(['bad_level_call_stubs/SConscript'])
46
47 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype=['core','player'], priority = [75, 10] )