Added GameKeys.EventToCharacter(event, is_shift) so you can get the character that...
[blender.git] / config / irix6-config.py
1 import os
2
3 LCGDIR = os.getcwd()+"/../lib/irix-6.5-mips"
4 LIBDIR = LCGDIR
5 print LCGDIR
6
7 WITH_BF_VERSE = 'false'
8 BF_VERSE_INCLUDE = "#extern/verse/dist"
9
10 BF_PYTHON = LCGDIR+'/python'
11 BF_PYTHON_VERSION = '2.5'
12 WITH_BF_STATICPYTHON = 'true'
13 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
14 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
15 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
16 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
17 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/python2.5/config/libpython${BF_PYTHON_VERSION}.a'
18
19 WITH_BF_OPENAL = 'true'
20 WITH_BF_STATICOPENAL = 'true'
21 BF_OPENAL = LCGDIR+'/openal'
22 BF_OPENAL_INC = '${BF_OPENAL}/include'
23 BF_OPENAL_LIB = 'openal'
24 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
25 BF_OPENAL_LIBPATH = LIBDIR + '/lib'
26
27 # some distros have a separate libalut
28 # if you get linker complaints, you need to uncomment the line below
29 # BF_OPENAL_LIB = 'openal alut'  
30 # BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a ${BF_OPENAL}/lib/libalut.a'
31
32 BF_CXX = '/usr'
33 WITH_BF_STATICCXX = 'false'
34 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
35
36 WITH_BF_SDL = 'true'
37 BF_SDL = LCGDIR+'/sdl' #$(shell sdl-config --prefix)
38 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
39 BF_SDL_LIB = 'SDL audio iconv charset' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
40 BF_SDL_LIBPATH = '${BF_SDL}/lib'
41
42 WITH_BF_OPENEXR = 'false'
43 WITH_BF_STATICOPENEXR = 'false'
44 BF_OPENEXR = '/usr'
45 # when compiling with your own openexr lib you might need to set...
46 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
47
48 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
49 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
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 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
52
53
54 WITH_BF_DDS = 'false'
55
56 WITH_BF_JPEG = 'false'
57 BF_JPEG = LCGDIR+'/jpeg'
58 BF_JPEG_INC = '${BF_JPEG}/include'
59 BF_JPEG_LIB = 'jpeg'
60 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
61
62 WITH_BF_PNG = 'false'
63 BF_PNG = LCGDIR+"/png"
64 BF_PNG_INC = '${BF_PNG}/include'
65 BF_PNG_LIB = 'png'
66 BF_PNG_LIBPATH = '${BF_PNG}/lib'
67
68 BF_TIFF = '/usr/nekoware'
69 BF_TIFF_INC = '${BF_TIFF}/include'
70
71 WITH_BF_ZLIB = 'true'
72 BF_ZLIB = LCGDIR+"/zlib"
73 BF_ZLIB_INC = '${BF_ZLIB}/include'
74 BF_ZLIB_LIB = 'z'
75 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
76
77 WITH_BF_INTERNATIONAL = 'true'
78
79 BF_GETTEXT = LCGDIR+'/gettext'
80 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
81 BF_GETTEXT_LIB = 'gettextpo intl'
82 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
83
84 WITH_BF_FTGL = 'true'
85 BF_FTGL = '#extern/bFTGL'
86 BF_FTGL_INC = '${BF_FTGL}/include'
87 BF_FTGL_LIB = 'extern_ftgl'
88
89 WITH_BF_GAMEENGINE='false'
90
91 WITH_BF_ODE = 'false'
92 BF_ODE = LIBDIR + '/ode'
93 BF_ODE_INC = BF_ODE + '/include'
94 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
95
96 WITH_BF_BULLET = 'true'
97 BF_BULLET = '#extern/bullet2/src'
98 BF_BULLET_INC = '${BF_BULLET}'
99 BF_BULLET_LIB = 'extern_bullet'
100
101 BF_SOLID = '#extern/solid'
102 BF_SOLID_INC = '${BF_SOLID}'
103 BF_SOLID_LIB = 'extern_solid'
104
105 WITH_BF_YAFRAY = 'true'
106
107 #WITH_BF_NSPR = 'true'
108 #BF_NSPR = $(LIBDIR)/nspr
109 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
110 #BF_NSPR_LIB = 
111
112 # Uncomment the following line to use Mozilla inplace of netscape
113 #CPPFLAGS += -DMOZ_NOT_NET
114 # Location of MOZILLA/Netscape header files...
115 #BF_MOZILLA = $(LIBDIR)/mozilla
116 #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
117 #BF_MOZILLA_LIB =
118 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
119 # if this is not set.
120 #
121 # Be paranoid regarding library creation (do not update archives)
122 #BF_PARANOID = 'true'
123
124 # enable freetype2 support for text objects
125 BF_FREETYPE = LCGDIR+'/freetype'
126 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
127 BF_FREETYPE_LIB = 'freetype'
128 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
129
130 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
131 BF_QUICKTIME = '/usr/local'
132 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
133
134 WITH_BF_ICONV = 'true'
135 BF_ICONV = LIBDIR + "/iconv"
136 BF_ICONV_INC = '${BF_ICONV}/include'
137 BF_ICONV_LIB = 'iconv charset'
138 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
139
140 WITH_BF_BINRELOC = 'false'
141
142 # enable ffmpeg  support
143 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
144 # Uncomment the following two lines to use system's ffmpeg
145 BF_FFMPEG = LCGDIR+'/ffmpeg'
146 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice faad faac vorbis x264 ogg mp3lame z'
147 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
148 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
149
150 # enable ogg, vorbis and theora in ffmpeg
151 WITH_BF_OGG = 'false'  # -DWITH_OGG 
152 BF_OGG = '/usr'
153 BF_OGG_INC = '${BF_OGG}/include'
154 BF_OGG_LIB = 'ogg vorbis theoraenc theoradec'
155
156 WITH_BF_OPENJPEG = 'false' 
157 BF_OPENJPEG = '#extern/libopenjpeg'
158 BF_OPENJPEG_LIB = ''
159 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
160 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
161
162 WITH_BF_REDCODE = 'false'  
163 BF_REDCODE = '#extern/libredcode'
164 BF_REDCODE_LIB = ''
165 BF_REDCODE_INC = '${BF_REDCODE}/include'
166 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
167
168 # Mesa Libs should go here if your using them as well....
169 WITH_BF_STATICOPENGL = 'false'
170 BF_OPENGL = '/usr'
171 BF_OPENGL_INC = '${BF_OPENGL}/include'
172 BF_OPENGL_LIB = 'GL GLU X11 Xi Xext'
173 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
174 BF_OPENGL_LIB_STATIC = '${BF_OPENGL}/libGL.a ${BF_OPENGL}/libGLU.a ${BF_OPENGL}/libXxf86vm.a ${BF_OPENGL}/libX11.a ${BF_OPENGL}/libXi.a ${BF_OPENGL}/libXext.a ${BF_OPENGL}/libXxf86vm.a'
175
176
177 CC = 'c99'
178 CXX = 'CC'
179
180
181 CCFLAGS = ['-pipe','-fPIC', '-n32']
182
183 CPPFLAGS = ['-DXP_UNIX']
184 CXXFLAGS = ['-pipe','-fPIC', '-n32']
185 REL_CFLAGS = ['-O2']
186 REL_CCFLAGS = ['-O2']
187 ##BF_DEPEND = 'true'
188 ##
189 ##AR = ar
190 ##ARFLAGS = ruv
191 ##ARFLAGSQUIET = ru
192 ##
193 C_WARN = '-no_prelink -ptused'
194
195 CC_WARN = '-no_prelink -ptused'
196
197 ##FIX_STUBS_WARNINGS = -Wno-unused
198
199 LLIBS = 'c m dl pthread dmedia movie'
200 ##LOPTS = --dynamic
201 ##DYNLDFLAGS = -shared $(LDFLAGS)
202
203 BF_PROFILE_FLAGS = ['-pg','-g']
204 BF_PROFILE = 'false'
205
206 BF_DEBUG = 'false'
207 BF_DEBUG_FLAGS = '-g'
208
209 BF_BUILDDIR = '../build/irix6'
210 BF_INSTALLDIR='../install/irix6'
211 BF_DOCDIR='../install/doc'
212
213 #Link against pthread
214 LDIRS = []
215 LDIRS.append(BF_FREETYPE_LIBPATH)
216 LDIRS.append(BF_PNG_LIBPATH)
217 LDIRS.append(BF_ZLIB_LIBPATH)
218 LDIRS.append(BF_SDL_LIBPATH)
219 LDIRS.append(BF_OPENAL_LIBPATH)
220 LDIRS.append(BF_ICONV_LIBPATH)
221
222 PLATFORM_LINKFLAGS = []
223 for x in LDIRS:
224     PLATFORM_LINKFLAGS.append("-L"+x)
225     
226 PLATFORM_LINKFLAGS += ['-L${LCGDIR}/jpeg/lib' , '-L/usr/lib32',  '-n32', '-v', '-no_prelink']
227 print PLATFORM_LINKFLAGS
228 LINKFLAGS= PLATFORM_LINKFLAGS