Some options used for "expert" x264 setup were removed from FFmpeg 0.11
[blender.git] / source / blender / blenkernel / SConscript
1 #!/usr/bin/python
2 Import ('env')
3 import os
4
5 sources = env.Glob('intern/*.c')
6
7 incs = '. #/intern/guardedalloc #/intern/memutil'
8 incs += ' ../blenlib ../blenfont ../makesdna ../windowmanager'
9 incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
10 incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes ../modifiers'
11 incs += ' #/intern/iksolver/extern ../blenloader'
12 incs += ' #/extern/bullet2/src'
13 incs += ' #/intern/opennl/extern #/intern/bsp/extern'
14 incs += ' ../gpu #/extern/glew/include'
15 incs += ' ../bmesh'
16 incs += ' #/intern/smoke/extern'
17 incs += ' #/intern/mikktspace'
18 incs += ' #/intern/audaspace/intern'
19 incs += ' #/intern/ffmpeg'
20 incs += ' #/intern/raskter'
21
22 incs += ' ' + env['BF_OPENGL_INC']
23 incs += ' ' + env['BF_ZLIB_INC']
24
25 defs = [ 'GLEW_STATIC' ]
26
27 if env['WITH_BF_SMOKE']:
28     defs.append('WITH_SMOKE')
29
30 if env['WITH_BF_FRAMESERVER']:
31     defs.append('WITH_FRAMESERVER')
32
33 if env['WITH_BF_PYTHON']:
34     incs += ' ../python'
35     incs += ' ' + env['BF_PYTHON_INC']
36     defs.append('WITH_PYTHON')
37     if env['BF_DEBUG']:
38         defs.append('DEBUG')
39
40 if env['WITH_BF_ELTOPO']:
41     incs += ' ../../../extern/eltopo'
42     defs.append('WITH_ELTOPO')
43         
44 if env['WITH_BF_QUICKTIME']:
45     incs += ' ../quicktime'
46
47 if env['WITH_BF_SDL']:
48     incs += ' ' + env['BF_SDL_INC']
49     defs.append('WITH_SDL')
50
51 if env['WITH_BF_OPENEXR']:
52     defs.append('WITH_OPENEXR')
53
54 if env['WITH_BF_TIFF']:
55     defs.append('WITH_TIFF')
56
57 if env['WITH_BF_OPENJPEG']:
58     defs.append('WITH_OPENJPEG')
59
60 if env['WITH_BF_DDS']:
61     defs.append('WITH_DDS')
62
63 if env['WITH_BF_CINEON']:
64     defs.append('WITH_CINEON')
65
66 if env['WITH_BF_HDR']:
67     defs.append('WITH_HDR')
68
69 if env['WITH_BF_JACK']:
70     defs.append('WITH_JACK')
71
72 if env['WITH_BF_FFMPEG']:
73     defs.append('WITH_FFMPEG')
74     incs += ' ' + env['BF_FFMPEG_INC']
75
76 if env['WITH_BF_QUICKTIME']:
77     defs.append('WITH_QUICKTIME')
78     incs += ' ' + env['BF_QUICKTIME_INC']
79
80 if env['WITH_BF_BULLET']:
81     defs.append('USE_BULLET')
82
83 if env['OURPLATFORM'] == 'darwin':
84     if env['WITH_BF_OPENMP']:
85        defs.append('PARALLEL=1')
86
87 if env['WITH_BF_FLUID']:
88     defs.append('WITH_MOD_FLUID')
89
90 if env['WITH_BF_OCEANSIM']:
91     defs.append('WITH_OCEANSIM')
92
93 if env['WITH_BF_LZO']:
94     incs += ' #/extern/lzo/minilzo'
95     defs.append('WITH_LZO')
96
97 if env['WITH_BF_LZMA']:
98     incs += ' #/extern/lzma'
99     defs.append('WITH_LZMA')
100
101 if env['WITH_BF_GAMEENGINE']:
102     incs += ' #/extern/recastnavigation'
103     defs.append('WITH_GAMEENGINE')
104 else:
105     sources.remove('intern' + os.sep + 'navmesh_conversion.c')
106
107 if env['WITH_BF_LIBMV']:
108     incs += ' #/extern/libmv'
109     defs.append('WITH_LIBMV')
110
111 if env['WITH_BF_FFTW3']:
112     defs.append('FFTW3=1')
113     incs += ' ' + env['BF_FFTW3_INC'] 
114
115 if env['WITH_BF_INTERNATIONAL']:
116     defs.append('WITH_INTERNATIONAL')
117
118 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
119     incs += ' ' + env['BF_PTHREADS_INC']
120
121 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
122     env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25]) #, cc_compileflags = env['CCFLAGS'].append('/WX') )
123 else:
124     env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [166,25,0] )