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