svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[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_BULLET = True
81 BF_BULLET = '#extern/bullet2/src'
82 BF_BULLET_INC = '${BF_BULLET}'
83 BF_BULLET_LIB = 'extern_bullet'
84
85 BF_WINTAB = LIBDIR + '/wintab'
86 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
87
88 #WITH_BF_NSPR = True
89 #BF_NSPR = $(LIBDIR)/nspr
90 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
91 #BF_NSPR_LIB = 
92
93 # Uncomment the following line to use Mozilla inplace of netscape
94 #CPPFLAGS += -DMOZ_NOT_NET
95 # Location of MOZILLA/Netscape header files...
96 #BF_MOZILLA = $(LIBDIR)/mozilla
97 #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
98 #BF_MOZILLA_LIB =
99 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
100 # if this is not set.
101
102 # enable freetype2 support for text objects
103 BF_FREETYPE = LIBDIR + '/gcc/freetype'
104 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
105 BF_FREETYPE_LIB = 'freetype'
106 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
107
108 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
109 BF_QUICKTIME = '/usr/local'
110 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
111
112 WITH_BF_ICONV = False
113 BF_ICONV = LIBDIR + "/iconv"
114 BF_ICONV_INC = '${BF_ICONV}/include'
115 BF_ICONV_LIB = 'iconv'
116 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
117
118 # Mesa Libs should go here if your using them as well....
119 WITH_BF_STATICOPENGL = False
120 BF_OPENGL = 'C:\\MingW'
121 BF_OPENGL_INC = '${BF_OPENGL}/include'
122 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
123 BF_OPENGL_LIB = 'opengl32 glu32'
124 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
125              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
126              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
127 ##
128 CC = 'gcc'
129 CXX = 'g++'
130
131 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
132
133 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
134 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
135 REL_CFLAGS = [ '-O2' ]
136 REL_CCFLAGS = [ '-O2' ]
137
138 C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
139
140 CC_WARN = [ '-Wall' ]
141
142 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++']
143
144 BF_DEBUG = False
145 BF_DEBUG_CCFLAGS= ['-g']
146
147 BF_PROFILE_CCFLAGS = ['-pg', '-g ']
148 BF_PROFILE_LINKFLAGS = ['-pg']
149 BF_PROFILE_FLAGS = BF_PROFILE_CCFLAGS
150 BF_PROFILE = False
151
152 BF_BUILDDIR = '..\\build\\win32-mingw'
153 BF_INSTALLDIR='..\\install\\win32-mingw'
154 BF_DOCDIR = '..\\install\\doc'