- Reverted "Set FREE_WINDOWS when compiling with MinGW"
[blender.git] / build_files / scons / config / win32-mingw-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = "${LCGDIR}"
3
4 BF_PYTHON = LIBDIR + '/python'
5 BF_PYTHON_VERSION = '3.1'
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 = 'python31'
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 = False
21 BF_FFMPEG_LIB = 'avformat-52 avcodec-52 avdevice-52 avutil-50 swscale-0'
22 BF_FFMPEG_LIBPATH = LIBDIR + '/ffmpeg/lib'
23 BF_FFMPEG_INC =  LIBDIR + '/ffmpeg/include'
24
25 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
26 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
27 BF_LIBSAMPLERATE_LIB = 'libsamplerate'
28 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
29
30 WITH_BF_JACK = False
31 BF_JACK = LIBDIR + '/jack'
32 BF_JACK_INC = '${BF_JACK}/include'
33 BF_JACK_LIB = 'libjack'
34 BF_JACK_LIBPATH = '${BF_JACK}/lib'
35
36 WITH_BF_SNDFILE = False
37 BF_SNDFILE = LIBDIR + '/sndfile'
38 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
39 BF_SNDFILE_LIB = 'libsndfile-1'
40 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
41
42 WITH_BF_SDL = True
43 BF_SDL = LIBDIR + '/sdl'
44 BF_SDL_INC = '${BF_SDL}/include'
45 BF_SDL_LIB = 'SDL'
46 BF_SDL_LIBPATH = '${BF_SDL}/lib'
47
48 BF_PTHREADS = LIBDIR + '/pthreads'
49 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
50 BF_PTHREADS_LIB = 'pthreadGC2'
51 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
52
53 WITH_BF_OPENEXR = True
54 WITH_BF_STATICOPENEXR = False
55 BF_OPENEXR = LIBDIR + '/gcc/openexr'
56 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
57 BF_OPENEXR_LIB = ' Half IlmImf Iex IlmThread '
58 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
59 # Warning, this static lib configuration is untested! users of this OS please confirm.
60 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'
61
62 WITH_BF_DDS = True
63
64 WITH_BF_JPEG = True
65 BF_JPEG = LIBDIR + '/jpeg'
66 BF_JPEG_INC = '${BF_JPEG}/include'
67 BF_JPEG_LIB = 'liblibjpeg'
68 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
69
70 WITH_BF_PNG = True
71 BF_PNG = LIBDIR + '/png'
72 BF_PNG_INC = '${BF_PNG}/include'
73 BF_PNG_LIB = 'png'
74 BF_PNG_LIBPATH = '${BF_PNG}/lib'
75
76 WITH_BF_TIFF = True
77 BF_TIFF = LIBDIR + '/gcc/tiff'
78 BF_TIFF_INC = '${BF_TIFF}/include'
79 BF_TIFF_LIB = 'tiff'
80 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
81
82 WITH_BF_ZLIB = True
83 BF_ZLIB = LIBDIR + '/zlib'
84 BF_ZLIB_INC = '${BF_ZLIB}/include'
85 BF_ZLIB_LIB = 'libz'
86 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
87
88 WITH_BF_INTERNATIONAL = True
89
90 BF_GETTEXT = LIBDIR + '/gcc/gettext'
91 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
92 BF_GETTEXT_LIB = 'intl'
93 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
94
95 WITH_BF_OPENJPEG = True
96 BF_OPENJPEG = '#extern/libopenjpeg'
97 BF_OPENJPEG_LIB = ''
98 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
99 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
100
101 WITH_BF_FFTW3 = False
102 BF_FFTW3 = LIBDIR + '/gcc/fftw3'
103 BF_FFTW3_INC = '${BF_FFTW3}/include'
104 BF_FFTW3_LIB = 'fftw3'
105 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
106
107 WITH_BF_GAMEENGINE = False
108 WITH_BF_PLAYER = False
109
110 WITH_BF_BULLET = True
111 BF_BULLET = '#extern/bullet2/src'
112 BF_BULLET_INC = '${BF_BULLET}'
113 BF_BULLET_LIB = 'extern_bullet'
114
115 BF_WINTAB = LIBDIR + '/wintab'
116 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
117
118 # enable freetype2 support for text objects
119 BF_FREETYPE = LIBDIR + '/gcc/freetype'
120 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
121 BF_FREETYPE_LIB = 'freetype'
122 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
123
124 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
125 BF_QUICKTIME = '/usr/local'
126 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
127
128 WITH_BF_ICONV = False
129 BF_ICONV = LIBDIR + "/iconv"
130 BF_ICONV_INC = '${BF_ICONV}/include'
131 BF_ICONV_LIB = 'iconv'
132 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
133
134 WITH_BF_REDCODE = False
135 BF_REDCODE_INC = '#extern'
136
137 # Mesa Libs should go here if your using them as well....
138 WITH_BF_STATICOPENGL = False
139 BF_OPENGL = 'C:\\MingW'
140 BF_OPENGL_INC = '${BF_OPENGL}/include'
141 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
142 BF_OPENGL_LIB = 'opengl32 glu32'
143 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
144              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
145              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
146
147 WITH_BF_COLLADA = True
148 BF_COLLADA = '#source/blender/collada'
149 BF_COLLADA_INC = '${BF_COLLADA}'
150 BF_COLLADA_LIB = 'bf_collada'
151
152 BF_OPENCOLLADA = LIBDIR + '/gcc/opencollada'
153 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
154 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver expat pcre buffer ftoa'
155 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib'
156
157 #Ray trace optimization
158 WITH_BF_RAYOPTIMIZATION = False
159 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse']
160
161 ##
162 CC = 'gcc'
163 CXX = 'g++'
164
165 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
166
167 CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS']
168 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
169 REL_CFLAGS = [ '-O2' ]
170 REL_CCFLAGS = [ '-O2' ]
171
172 C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
173
174 CC_WARN = [ '-Wall' ]
175
176 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++','-lole32','-luuid']
177
178 BF_DEBUG = False
179 BF_DEBUG_CCFLAGS= ['-g']
180
181 BF_PROFILE_CCFLAGS = ['-pg', '-g']
182 BF_PROFILE_LINKFLAGS = ['-pg']
183 BF_PROFILE_FLAGS = BF_PROFILE_CCFLAGS
184 BF_PROFILE = False
185
186 BF_BUILDDIR = '..\\build\\win32-mingw'
187 BF_INSTALLDIR='..\\install\\win32-mingw'