Quicktime: remove backend with the old quicktime API, and keep the QTKit backend.
[blender-staging.git] / build_files / scons / config / linuxcross-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = '${LCGDIR}'
3
4 BF_PYTHON = LIBDIR + '/python'
5 BF_PYTHON_VERSION = '3.3'
6 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
7 BF_PYTHON_BINARY = 'python'
8 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}mw'
9 BF_PYTHON_DLL = 'python31'
10 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
11
12 WITH_BF_OPENAL = True
13 WITH_BF_STATICOPENAL = False
14 BF_OPENAL = LIBDIR + '/openal'
15 BF_OPENAL_INC = '${BF_OPENAL}/include'
16 BF_OPENAL_LIB = 'OpenAL32 wrap_oal'
17 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
18 # Warning, this static lib configuration is untested! users of this OS please confirm.
19 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
20
21 # Warning, this static lib configuration is untested! users of this OS please confirm.
22 BF_CXX = '/usr'
23 WITH_BF_STATICCXX = False
24 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
25
26 WITH_BF_SDL = True
27 BF_SDL = LIBDIR + '/sdl'
28 BF_SDL_INC = '${BF_SDL}/include'
29 BF_SDL_LIB = 'SDL'
30 BF_SDL_LIBPATH = '${BF_SDL}/lib'
31
32 WITH_BF_JACK = False
33 BF_JACK = LIBDIR + '/jack'
34 BF_JACK_INC = '${BF_JACK}/include'
35 BF_JACK_LIB = 'jack'
36 BF_JACK_LIBPATH = '${BF_JACK}/lib'
37
38 WITH_BF_SNDFILE = False
39 BF_SNDFILE = LIBDIR + '/sndfile'
40 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
41 BF_SNDFILE_LIB = 'sndfile-1'
42 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
43
44 BF_PTHREADS = LIBDIR + '/pthreads'
45 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
46 BF_PTHREADS_LIB = 'pthreadGC2'
47 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
48
49 WITH_BF_OPENEXR = True
50 WITH_BF_STATICOPENEXR = False
51 BF_OPENEXR = LIBDIR + '/gcc/openexr'
52 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
53 BF_OPENEXR_LIB = ' Half IlmImf Iex IlmThread '
54 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
55 # Warning, this static lib configuration is untested! users of this OS please confirm.
56 BF_OPENEXR_LIB_STATIC = '${BF_OPENEXR}/lib/libHalf.a ${BF_OPENEXR}/lib/libIlmImf.a ${BF_OPENEXR}/lib/libIex.a ${BF_OPENEXR}/lib/libImath.a ${BF_OPENEXR}/lib/libIlmThread.a'
57
58 WITH_BF_DDS = True
59
60 WITH_BF_JPEG = True
61 BF_JPEG = LIBDIR + '/jpeg'
62 BF_JPEG_INC = '${BF_JPEG}/include'
63 BF_JPEG_LIB = 'libjpeg'
64 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
65
66 WITH_BF_PNG = True
67 BF_PNG = LIBDIR + '/png'
68 BF_PNG_INC = '${BF_PNG}/include'
69 BF_PNG_LIB = 'png'
70 BF_PNG_LIBPATH = '${BF_PNG}/lib'
71
72 WITH_BF_TIFF = True
73 BF_TIFF = LIBDIR + '/gcc/tiff'
74 BF_TIFF_INC = '${BF_TIFF}/include'
75 BF_TIFF_LIB = 'tiff'
76 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
77
78 WITH_BF_ZLIB = True
79 BF_ZLIB = LIBDIR + '/zlib'
80 BF_ZLIB_INC = '${BF_ZLIB}/include'
81 BF_ZLIB_LIB = 'libz_st'
82 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
83
84 WITH_BF_INTERNATIONAL = True
85
86 WITH_BF_GAMEENGINE = True
87 WITH_BF_PLAYER = False
88 WITH_BF_OCEANSIM = True
89
90 WITH_BF_BULLET = True
91 BF_BULLET = '#extern/bullet2/src'
92 BF_BULLET_INC = '${BF_BULLET}'
93 BF_BULLET_LIB = 'extern_bullet'
94
95 BF_WINTAB = LIBDIR + '/wintab'
96 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
97
98 BF_WITH_FREETYPE = True
99 BF_FREETYPE = LIBDIR + '/gcc/freetype'
100 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
101 BF_FREETYPE_LIB = 'freetype'
102 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
103
104 WITH_BF_ICONV = False
105 BF_ICONV = LIBDIR + "/gcc/iconv"
106 BF_ICONV_INC = '${BF_ICONV}/include'
107 BF_ICONV_LIB = 'iconv'
108 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
109
110 WITH_BF_BINRELOC = False
111
112 # enable ffmpeg  support
113 WITH_BF_FFMPEG = True
114 BF_FFMPEG = LIBDIR + '/ffmpeg'
115 BF_FFMPEG_LIB = 'avformat-53 avcodec-53 avdevice-53 avutil-51 swscale-2'
116 BF_FFMPEG_DLL = '${BF_FFMPEG_LIBPATH}/avformat-53.dll ${BF_FFMPEG_LIBPATH}/avcodec-53.dll ${BF_FFMPEG_LIBPATH}/avdevice-53.dll ${BF_FFMPEG_LIBPATH}/avutil-51.dll ${BF_FFMPEG_LIBPATH}/swscale-2.dll'
117 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
118 BF_FFMPEG_LIBPATH = '${BF_FFMPEG}/lib'
119 BF_FFMPEG_DLL = '${BF_FFMPEG_LIBPATH}/avformat-53.dll ${BF_FFMPEG_LIBPATH}/avcodec-53.dll ${BF_FFMPEG_LIBPATH}/avdevice-53.dll ${BF_FFMPEG_LIBPATH}/avutil-51.dll ${BF_FFMPEG_LIBPATH}/swscale-2.dll'
120
121 WITH_BF_OPENJPEG = True
122 BF_OPENJPEG = '#extern/libopenjpeg'
123 BF_OPENJPEG_LIB = ''
124 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
125 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
126
127 WITH_BF_FFTW3 = False
128 BF_FFTW3 = LIBDIR + '/gcc/fftw3'
129 BF_FFTW3_INC = '${BF_FFTW3}/include'
130 BF_FFTW3_LIB = 'fftw3'
131 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
132
133 WITH_BF_REDCODE = False
134 BF_REDCODE_INC = '#extern'
135
136 # Mesa Libs should go here if your using them as well....
137 WITH_BF_STATICOPENGL = False
138 BF_OPENGL = 'C:\\MingW'
139 BF_OPENGL_INC = '${BF_OPENGL}/include'
140 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
141 BF_OPENGL_LIB = 'opengl32 glu32'
142 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a']
143
144 WITH_BF_OPENMP = False
145 BF_OPENMP = LIBDIR + '/gcc/gomp'
146 BF_OPENMP_INC = '${BF_OPENMP}/include'
147 BF_OPENMP_LIBPATH = '${BF_OPENMP}/lib'
148
149 WITH_BF_COLLADA = False
150 BF_COLLADA = '#source/blender/collada'
151 BF_COLLADA_INC = '${BF_COLLADA}'
152 BF_COLLADA_LIB = 'bf_collada'
153
154 BF_OPENCOLLADA = LIBDIR + '/gcc/opencollada'
155 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
156 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver expat pcre buffer ftoa'
157 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib ${BF_ICONV_LIBPATH}'
158
159 #Freestyle
160 WITH_BF_FREESTYLE = True
161
162 #Ray trace optimization
163 WITH_BF_RAYOPTIMIZATION = True
164 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse']
165
166 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
167 CXXFLAGS = []
168
169 CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE']
170 REL_CFLAGS = []
171 REL_CXXFLAGS = []
172 REL_CCFLAGS = ['-DNDEBUG',  '-O2']
173 C_WARN = ['-Wall', '-Wstrict-prototypes', '-Wno-char-subscripts', '-Wdeclaration-after-statement']
174
175 CC_WARN = [ '-Wall' ]
176
177 LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++', '-luuid', '-lole32'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
178
179 PLATFORM_LINKFLAGS = ['--stack,2097152']
180
181 BF_DEBUG = False
182 BF_DEBUG_CCFLAGS = ['-g', '-D_DEBUG']
183
184 BF_PROFILE = False
185 BF_PROFILE_CCFLAGS = ['-pg','-g']
186 BF_PROFILE_LINKFLAGS = ['-pg']
187
188 BF_BUILDDIR = '../build/linuxcross'
189 BF_INSTALLDIR='../install/linuxcross'