mingw-config.py prepared for work with python 2.5 and 2.6 controlled by only one...
[blender.git] / config / win32-mingw-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = "${LCGDIR}"
3
4 WITH_BF_VERSE = False
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 BF_PYTHON = LIBDIR + '/python'
8 BF_PYTHON_VERSION = '2.5'
9 #BF_PYTHON_VERSION = '2.6'
10 WITH_BF_STATICPYTHON = False
11 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
12 BF_PYTHON_BINARY = 'python'
13 #BF_PYTHON_LIB = 'python25'
14 #BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib/lib25_vs2005'
15 #BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/lib25_vs2005/libpython25.a'
16 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}'
17 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
18 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}.a'
19
20 WITH_BF_OPENAL = True
21 WITH_BF_STATICOPENAL = False
22 BF_OPENAL = LIBDIR + '/openal'
23 BF_OPENAL_INC = '${BF_OPENAL}/include'
24 BF_OPENAL_LIB = 'dxguid openal_static'
25 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
26 # Warning, this static lib configuration is untested! users of this OS please confirm.
27 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
28
29 WITH_BF_FFMPEG = False
30 BF_FFMPEG_LIB = 'avformat swscale avcodec avutil avdevice xvidcore x264'
31 BF_FFMPEG_LIBPATH = LIBDIR + '/gcc/ffmpeg/lib'
32 BF_FFMPEG_INC =  LIBDIR + '/gcc/ffmpeg/include'
33
34 WITH_BF_SDL = True
35 BF_SDL = LIBDIR + '/sdl'
36 BF_SDL_INC = '${BF_SDL}/include'
37 BF_SDL_LIB = 'SDL'
38 BF_SDL_LIBPATH = '${BF_SDL}/lib'
39
40 BF_PTHREADS = LIBDIR + '/pthreads'
41 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
42 BF_PTHREADS_LIB = 'pthreadGC2'
43 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
44
45 WITH_BF_OPENEXR = True
46 WITH_BF_STATICOPENEXR = False
47 BF_OPENEXR = LIBDIR + '/gcc/openexr'
48 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
49 BF_OPENEXR_LIB = ' Half IlmImf Iex '
50 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
51 # Warning, this static lib configuration is untested! users of this OS please confirm.
52 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'
53
54 WITH_BF_DDS = True
55
56 WITH_BF_JPEG = True
57 BF_JPEG = LIBDIR + '/jpeg'
58 BF_JPEG_INC = '${BF_JPEG}/include'
59 BF_JPEG_LIB = 'jpeg'
60 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
61
62 WITH_BF_PNG = True
63 BF_PNG = LIBDIR + '/png'
64 BF_PNG_INC = '${BF_PNG}/include'
65 BF_PNG_LIB = 'png'
66 BF_PNG_LIBPATH = '${BF_PNG}/lib'
67
68 BF_TIFF = LIBDIR + '/tiff'
69 BF_TIFF_INC = '${BF_TIFF}/include'
70 BF_TIFF_LIB = 'libtiff'
71 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
72
73 WITH_BF_ZLIB = True
74 BF_ZLIB = LIBDIR + '/zlib'
75 BF_ZLIB_INC = '${BF_ZLIB}/include'
76 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
77
78 WITH_BF_INTERNATIONAL = True
79
80 BF_GETTEXT = LIBDIR + '/gettext'
81 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
82 BF_GETTEXT_LIB = 'gnu_gettext'
83 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
84
85 WITH_BF_FTGL = True
86 BF_FTGL = LIBDIR + '/ftgl'
87 BF_FTGL_INC = '${BF_FTGL}/include'
88 BF_FTGL_LIB = 'extern_ftgl'
89
90 WITH_BF_GAMEENGINE = False
91
92 WITH_BF_ODE = True
93 BF_ODE = LIBDIR + '/ode'
94 BF_ODE_INC = BF_ODE + '/include'
95 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
96
97 WITH_BF_BULLET = True
98 BF_BULLET = '#extern/bullet2/src'
99 BF_BULLET_INC = '${BF_BULLET}'
100 BF_BULLET_LIB = 'extern_bullet'
101
102 BF_SOLID = '#extern/solid'
103 BF_SOLID_INC = '${BF_SOLID}'
104 BF_SOLID_LIB = 'extern_solid'
105
106 BF_WINTAB = LIBDIR + '/wintab'
107 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
108
109 WITH_BF_YAFRAY = True
110
111 #WITH_BF_NSPR = True
112 #BF_NSPR = $(LIBDIR)/nspr
113 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
114 #BF_NSPR_LIB = 
115
116 # Uncomment the following line to use Mozilla inplace of netscape
117 #CPPFLAGS += -DMOZ_NOT_NET
118 # Location of MOZILLA/Netscape header files...
119 #BF_MOZILLA = $(LIBDIR)/mozilla
120 #BF_MOZILLA_INC = -I$(BF_MOZILLA)/include/mozilla/nspr -I$(BF_MOZILLA)/include/mozilla -I$(BF_MOZILLA)/include/mozilla/xpcom -I$(BF_MOZILLA)/include/mozilla/idl
121 #BF_MOZILLA_LIB =
122 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
123 # if this is not set.
124
125 # enable freetype2 support for text objects
126 BF_FREETYPE = LIBDIR + '/gcc/freetype'
127 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
128 BF_FREETYPE_LIB = 'freetype'
129 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
130
131 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
132 BF_QUICKTIME = '/usr/local'
133 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
134
135 WITH_BF_ICONV = False
136 BF_ICONV = LIBDIR + "/iconv"
137 BF_ICONV_INC = '${BF_ICONV}/include'
138 BF_ICONV_LIB = 'iconv'
139 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
140
141 # Mesa Libs should go here if your using them as well....
142 WITH_BF_STATICOPENGL = False
143 BF_OPENGL = 'C:\\MingW'
144 BF_OPENGL_INC = '${BF_OPENGL}/include'
145 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
146 BF_OPENGL_LIB = 'opengl32 glu32'
147 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
148              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
149              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
150 ##
151 CC = 'gcc'
152 CXX = 'g++'
153
154 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
155
156 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
157 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
158 REL_CFLAGS = [ '-O2' ]
159 REL_CCFLAGS = [ '-O2' ]
160
161 C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
162
163 CC_WARN = [ '-Wall' ]
164
165 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++']
166
167 BF_DEBUG = False
168 BF_DEBUG_CCFLAGS= ['-g']
169
170 BF_PROFILE_CCFLAGS = ['-pg', '-g ']
171 BF_PROFILE_LINKFLAGS = ['-pg']
172 BF_PROFILE = False
173
174 BF_BUILDDIR = '..\\build\\win32-mingw'
175 BF_INSTALLDIR='..\\install\\win32-mingw'
176 BF_DOCDIR = '..\\install\\doc'