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