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