2.5
[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_OPENEXR = True
39 WITH_BF_STATICOPENEXR = False
40 BF_OPENEXR = LIBDIR + '/gcc/openexr'
41 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
42 BF_OPENEXR_LIB = ' Half IlmImf Iex '
43 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
44 # Warning, this static lib configuration is untested! users of this OS please confirm.
45 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'
46
47 WITH_BF_DDS = True
48
49 WITH_BF_JPEG = True
50 BF_JPEG = LIBDIR + '/jpeg'
51 BF_JPEG_INC = '${BF_JPEG}/include'
52 BF_JPEG_LIB = 'jpeg'
53 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
54
55 WITH_BF_PNG = True
56 BF_PNG = LIBDIR + '/png'
57 BF_PNG_INC = '${BF_PNG}/include'
58 BF_PNG_LIB = 'png'
59 BF_PNG_LIBPATH = '${BF_PNG}/lib'
60
61 BF_TIFF = LIBDIR + '/tiff'
62 BF_TIFF_INC = '${BF_TIFF}/include'
63 BF_TIFF_LIB = 'libtiff'
64 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
65
66 WITH_BF_ZLIB = True
67 BF_ZLIB = LIBDIR + '/zlib'
68 BF_ZLIB_INC = '${BF_ZLIB}/include'
69 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
70
71 WITH_BF_INTERNATIONAL = True
72
73 BF_GETTEXT = LIBDIR + '/gettext'
74 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
75 BF_GETTEXT_LIB = 'gnu_gettext'
76 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
77
78 WITH_BF_GAMEENGINE = False
79
80 WITH_BF_ODE = True
81 BF_ODE = LIBDIR + '/ode'
82 BF_ODE_INC = BF_ODE + '/include'
83 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
84
85 WITH_BF_BULLET = True
86 BF_BULLET = '#extern/bullet2/src'
87 BF_BULLET_INC = '${BF_BULLET}'
88 BF_BULLET_LIB = 'extern_bullet'
89
90 BF_SOLID = '#extern/solid'
91 BF_SOLID_INC = '${BF_SOLID}'
92 BF_SOLID_LIB = 'extern_solid'
93
94 BF_WINTAB = LIBDIR + '/wintab'
95 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
96
97 #WITH_BF_NSPR = True
98 #BF_NSPR = $(LIBDIR)/nspr
99 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
100 #BF_NSPR_LIB = 
101
102 # Uncomment the following line to use Mozilla inplace of netscape
103 #CPPFLAGS += -DMOZ_NOT_NET
104 # Location of MOZILLA/Netscape header files...
105 #BF_MOZILLA = $(LIBDIR)/mozilla
106 #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
107 #BF_MOZILLA_LIB =
108 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
109 # if this is not set.
110
111 # enable freetype2 support for text objects
112 BF_FREETYPE = LIBDIR + '/gcc/freetype'
113 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
114 BF_FREETYPE_LIB = 'freetype'
115 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
116
117 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
118 BF_QUICKTIME = '/usr/local'
119 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
120
121 WITH_BF_ICONV = False
122 BF_ICONV = LIBDIR + "/iconv"
123 BF_ICONV_INC = '${BF_ICONV}/include'
124 BF_ICONV_LIB = 'iconv'
125 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
126
127 # Mesa Libs should go here if your using them as well....
128 WITH_BF_STATICOPENGL = False
129 BF_OPENGL = 'C:\\MingW'
130 BF_OPENGL_INC = '${BF_OPENGL}/include'
131 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
132 BF_OPENGL_LIB = 'opengl32 glu32'
133 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
134              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
135              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
136 ##
137 CC = 'gcc'
138 CXX = 'g++'
139
140 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
141
142 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
143 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
144 REL_CFLAGS = [ '-O2' ]
145 REL_CCFLAGS = [ '-O2' ]
146
147 C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
148
149 CC_WARN = [ '-Wall' ]
150
151 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++']
152
153 BF_DEBUG = False
154 BF_DEBUG_CCFLAGS= ['-g']
155
156 BF_PROFILE_CCFLAGS = ['-pg', '-g ']
157 BF_PROFILE_LINKFLAGS = ['-pg']
158 BF_PROFILE_FLAGS = BF_PROFILE_CCFLAGS
159 BF_PROFILE = False
160
161 BF_BUILDDIR = '..\\build\\win32-mingw'
162 BF_INSTALLDIR='..\\install\\win32-mingw'
163 BF_DOCDIR = '..\\install\\doc'