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