[ #4035 ] patch to make scons compile with ffmpeg in mingw
[blender-staging.git] / source / blender / blenkernel / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('intern/*.c')
5
6 incs = '. #/intern/guardedalloc ../include ../blenlib ../makesdna'
7 incs += ' ../python ../render/extern/include #/intern/decimation/extern'
8 incs += ' ../imbuf ../avi #/intern/elbeem/extern'
9 incs += ' #/intern/iksolver/extern ../blenloader ../quicktime'
10
11 incs += ' ' + env['BF_OPENGL_INC']
12 incs += ' ' + env['BF_ZLIB_INC']
13 incs += ' ' + env['BF_SDL_INC']
14
15 defs = ''
16
17 if env['WITH_BF_INTERNATIONAL'] == 1:
18     defs += 'WITH_FREETYPE2'
19
20 if env['WITH_BF_OPENEXR'] == 1:
21     defs += ' WITH_OPENEXR'
22
23 if env['WITH_BF_FFMPEG'] == 1:
24     defs += ' WITH_FFMPEG'
25     incs += ' ' + env['BF_FFMPEG_INC']
26
27 if env['WITH_BF_QUICKTIME'] == 1:
28     defs += ' WITH_QUICKTIME'
29     incs += ' ' + env['BF_QUICKTIME_INC']
30
31 defs += ' WITH_CCGSUBSURF'
32
33 if env['WITH_BF_PLAYER']:
34     SConscript(['bad_level_call_stubs/SConscript'])
35
36 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = Split(defs), libtype=['core','player'], priority = [65, 20] )