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