Quicktime: remove backend with the old quicktime API, and keep the QTKit backend.
[blender-staging.git] / build_files / scons / config / win32-mingw-config.py
1 LCGDIR = '#../lib/mingw32'
2 LIBDIR = "${LCGDIR}"
3
4 BF_PYTHON = LIBDIR + '/python'
5 BF_PYTHON_VERSION = '3.3'
6 WITH_BF_STATICPYTHON = False
7 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
8 BF_PYTHON_BINARY = 'python'
9 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}mw'
10 BF_PYTHON_DLL = 'python33'
11 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
12 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}.a'
13
14 WITH_BF_OPENAL = True
15 BF_OPENAL = LIBDIR + '/openal'
16 BF_OPENAL_INC = '${BF_OPENAL}/include'
17 BF_OPENAL_LIB = 'wrap_oal'
18 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
19
20 WITH_BF_FFMPEG = True
21 BF_FFMPEG_LIB = 'avformat-53 avcodec-53 avdevice-53 avutil-51 swscale-2'
22 BF_FFMPEG_LIBPATH = LIBDIR + '/ffmpeg/lib'
23 BF_FFMPEG_INC =  LIBDIR + '/ffmpeg/include'
24 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'
25
26 WITH_BF_JACK = False
27 BF_JACK = LIBDIR + '/jack'
28 BF_JACK_INC = '${BF_JACK}/include'
29 BF_JACK_LIB = 'libjack'
30 BF_JACK_LIBPATH = '${BF_JACK}/lib'
31
32 WITH_BF_SNDFILE = False
33 BF_SNDFILE = LIBDIR + '/sndfile'
34 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
35 BF_SNDFILE_LIB = 'libsndfile-1'
36 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
37
38 WITH_BF_SDL = True
39 BF_SDL = LIBDIR + '/sdl'
40 BF_SDL_INC = '${BF_SDL}/include'
41 BF_SDL_LIB = 'SDL'
42 BF_SDL_LIBPATH = '${BF_SDL}/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 + '/openexr'
52 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
53 BF_OPENEXR_LIB = 'Half IlmImf Imath IlmThread Iex'
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 = 'liblibjpeg'
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 + '/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 = 'z'
82 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
83
84 WITH_BF_INTERNATIONAL = True
85
86 WITH_BF_OPENJPEG = True
87 BF_OPENJPEG = '#extern/libopenjpeg'
88 BF_OPENJPEG_LIB = ''
89 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
90 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
91
92 WITH_BF_FFTW3 = True
93 BF_FFTW3 = LIBDIR + '/fftw3'
94 BF_FFTW3_INC = '${BF_FFTW3}/include'
95 BF_FFTW3_LIB = 'fftw3'
96 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
97
98 WITH_BF_GAMEENGINE = True
99 WITH_BF_PLAYER = True
100 WITH_BF_OCEANSIM = True
101
102 WITH_BF_BULLET = True
103 BF_BULLET = '#extern/bullet2/src'
104 BF_BULLET_INC = '${BF_BULLET}'
105 BF_BULLET_LIB = 'extern_bullet'
106
107 BF_WINTAB = LIBDIR + '/wintab'
108 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
109
110 BF_FREETYPE = LIBDIR + '/freetype'
111 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
112 BF_FREETYPE_LIB = 'freetype'
113 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
114
115 WITH_BF_ICONV = False
116 BF_ICONV = LIBDIR + "/iconv"
117 BF_ICONV_INC = '${BF_ICONV}/include'
118 BF_ICONV_LIB = 'iconv'
119 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
120
121 WITH_BF_REDCODE = False
122 BF_REDCODE_INC = '#extern'
123
124 # Mesa Libs should go here if your using them as well....
125 WITH_BF_STATICOPENGL = False
126 BF_OPENGL = 'C:\\MingW'
127 BF_OPENGL_INC = '${BF_OPENGL}/include'
128 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
129 BF_OPENGL_LIB = 'opengl32 glu32'
130 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
131              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
132              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
133
134 WITH_BF_COLLADA = True
135 BF_COLLADA = '#source/blender/collada'
136 BF_COLLADA_INC = '${BF_COLLADA}'
137 BF_COLLADA_LIB = 'bf_collada'
138
139 BF_OPENCOLLADA = LIBDIR + '/opencollada'
140 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include/opencollada'
141 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver pcre buffer ftoa xml'
142 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib/opencollada'
143
144 #Cycles
145 WITH_BF_CYCLES = True
146 WITH_BF_CYCLES_CUDA_BINARIES = False
147 BF_CYCLES_CUDA_NVCC = "" # Path to the NVIDIA CUDA compiler
148 BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_20', 'sm_21', 'sm_30', 'sm_35']
149
150 WITH_BF_OIIO = True
151 BF_OIIO = LIBDIR + '/openimageio'
152 BF_OIIO_INC = '${BF_OIIO}/include'
153 BF_OIIO_LIB = 'OpenImageIO'
154 BF_OIIO_LIBPATH = '${BF_OIIO}/lib'
155
156 WITH_BF_OCIO = True
157 BF_OCIO = LIBDIR + '/opencolorio'
158 BF_OCIO_INC = '${BF_OCIO}/include'
159 BF_OCIO_LIB = 'OpenColorIO'
160 BF_OCIO_LIBPATH = '${BF_OCIO}/lib'
161
162 WITH_BF_BOOST = True
163 BF_BOOST = LIBDIR + '/boost'
164 BF_BOOST_INC = '${BF_BOOST}/include'
165 BF_BOOST_LIB = 'boost_date_time-mgw46-mt-s-1_49 boost_filesystem-mgw46-mt-s-1_49 boost_regex-mgw46-mt-s-1_49 boost_system-mgw46-mt-s-1_49 boost_thread-mgw46-mt-s-1_49'
166 BF_BOOST_LIB_INTERNATIONAL = 'boost_locale-mgw46-mt-s-1_49'
167 BF_BOOST_LIBPATH = '${BF_BOOST}/lib'
168
169 #Ray trace optimization
170 WITH_BF_RAYOPTIMIZATION = True
171 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse']
172
173 WITH_BF_OPENMP = True
174
175 #CUDA
176 WITH_BF_CYCLES_CUDA_BINARIES = False
177 #BF_CYCLES_CUDA_NVCC = "" # Path to the nvidia compiler
178 BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_20', 'sm_21', 'sm_30']
179
180 #Freestyle
181 WITH_BF_FREESTYLE = True
182
183 ##
184 CC = 'gcc'
185 CXX = 'g++'
186
187 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
188 CXXFLAGS = []
189
190 CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE', '-DBOOST_ALL_NO_LIB', '-DBOOST_THREAD_USE_LIB', '-DGLEW_STATIC', '-DOPJ_STATIC']
191 REL_CFLAGS = []
192 REL_CXXFLAGS = []
193 REL_CCFLAGS = ['-DNDEBUG',  '-O2']
194
195 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes']
196
197 CC_WARN = [ '-Wall' ]
198
199 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++','-lole32','-luuid', '-lwsock32', '-lpsapi']
200
201 PLATFORM_LINKFLAGS = ['-Xlinker', '--stack=2097152']
202
203 ## DISABLED, causes linking errors!
204 ## for re-distribution, so users dont need mingw installed
205 # PLATFORM_LINKFLAGS += ["-static-libgcc", "-static-libstdc++"]
206
207 BF_DEBUG = False
208 BF_DEBUG_CCFLAGS= ['-g', '-D_DEBUG']
209
210 BF_PROFILE_CCFLAGS = ['-pg', '-g']
211 BF_PROFILE_LINKFLAGS = ['-pg']
212 BF_PROFILE_FLAGS = BF_PROFILE_CCFLAGS
213 BF_PROFILE = False
214
215 BF_BUILDDIR = '..\\build\\win32-mingw'
216 BF_INSTALLDIR='..\\install\\win32-mingw'