Fix for [#21983] Entering Particle Edit mode crash
[blender.git] / config / aix4-config.py
1 import os
2
3 LCGDIR = os.getcwd()+"/../lib/aix-4.3-ppc"
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 = '3.1'
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 = 'false'
20 WITH_BF_STATICOPENAL = 'false'
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 BF_CXX = '/usr'
28 WITH_BF_STATICCXX = 'false'
29 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
30
31 WITH_BF_SDL = 'false'
32 BF_SDL = LCGDIR+'/sdl' #$(shell sdl-config --prefix)
33 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
34 BF_SDL_LIB = 'SDL audio iconv charset' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
35 BF_SDL_LIBPATH = '${BF_SDL}/lib'
36
37 WITH_BF_OPENEXR = 'false'
38 WITH_BF_STATICOPENEXR = 'false'
39 BF_OPENEXR = '/usr'
40 # when compiling with your own openexr lib you might need to set...
41 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
42
43 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
44 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
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 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
47
48
49 WITH_BF_DDS = 'false'
50
51 WITH_BF_JPEG = 'false'
52 BF_JPEG = LCGDIR+'/jpeg'
53 BF_JPEG_INC = '${BF_JPEG}/include'
54 BF_JPEG_LIB = 'jpeg'
55 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
56
57 WITH_BF_PNG = 'false'
58 BF_PNG = LCGDIR+"/png"
59 BF_PNG_INC = '${BF_PNG}/include'
60 BF_PNG_LIB = 'png'
61 BF_PNG_LIBPATH = '${BF_PNG}/lib'
62
63 BF_TIFF = '/usr/nekoware'
64 BF_TIFF_INC = '${BF_TIFF}/include'
65
66 WITH_BF_ZLIB = 'true'
67 BF_ZLIB = LCGDIR+"/zlib"
68 BF_ZLIB_INC = '${BF_ZLIB}/include'
69 BF_ZLIB_LIB = 'z'
70 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
71
72 WITH_BF_INTERNATIONAL = 'false'
73
74 BF_GETTEXT = LCGDIR+'/gettext'
75 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
76 BF_GETTEXT_LIB = 'gettextpo intl'
77 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
78
79 WITH_BF_FTGL = 'false'
80 BF_FTGL = '#extern/bFTGL'
81 BF_FTGL_INC = '${BF_FTGL}/include'
82 BF_FTGL_LIB = 'extern_ftgl'
83
84 WITH_BF_GAMEENGINE='false'
85
86 WITH_BF_ODE = 'false'
87 BF_ODE = LIBDIR + '/ode'
88 BF_ODE_INC = BF_ODE + '/include'
89 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
90
91 WITH_BF_BULLET = 'true'
92 BF_BULLET = '#extern/bullet2/src'
93 BF_BULLET_INC = '${BF_BULLET}'
94 BF_BULLET_LIB = 'extern_bullet'
95
96 BF_SOLID = '#extern/solid'
97 BF_SOLID_INC = '${BF_SOLID}'
98 BF_SOLID_LIB = 'extern_solid'
99
100 WITH_BF_YAFRAY = 'true'
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 # Be paranoid regarding library creation (do not update archives)
117 #BF_PARANOID = 'true'
118
119 # enable freetype2 support for text objects
120 BF_FREETYPE = LCGDIR+'/freetype'
121 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
122 BF_FREETYPE_LIB = 'freetype'
123 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
124
125 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
126 BF_QUICKTIME = '/usr/local'
127 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
128
129 WITH_BF_ICONV = 'false'
130 BF_ICONV = LIBDIR + "/iconv"
131 BF_ICONV_INC = '${BF_ICONV}/include'
132 BF_ICONV_LIB = 'iconv charset'
133 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
134
135 WITH_BF_BINRELOC = 'false'
136
137 # enable ffmpeg  support
138 WITH_BF_FFMPEG = 'false'  # -DWITH_FFMPEG
139 # Uncomment the following two lines to use system's ffmpeg
140 BF_FFMPEG = LCGDIR+'/ffmpeg'
141 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice faad faac vorbis x264 ogg mp3lame z'
142 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
143 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
144
145 # enable ogg, vorbis and theora in ffmpeg
146 WITH_BF_OGG = 'false'  # -DWITH_OGG 
147 BF_OGG = '/usr'
148 BF_OGG_INC = '${BF_OGG}/include'
149 BF_OGG_LIB = 'ogg vorbis theoraenc theoradec'
150
151 WITH_BF_OPENJPEG = 'false' 
152 BF_OPENJPEG = '#extern/libopenjpeg'
153 BF_OPENJPEG_LIB = ''
154 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
155 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
156
157 WITH_BF_REDCODE = 'false'  
158 BF_REDCODE = '#extern/libredcode'
159 BF_REDCODE_LIB = ''
160 BF_REDCODE_INC = '${BF_REDCODE}/include'
161 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
162
163 # Mesa Libs should go here if your using them as well....
164 WITH_BF_STATICOPENGL = 'false'
165 BF_OPENGL = '/usr'
166 BF_OPENGL_INC = '${BF_OPENGL}/include'
167 BF_OPENGL_LIB = 'GL GLU X11 Xi Xext'
168 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
169 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'
170
171
172 CC = 'gcc'
173 CXX = 'g++'
174
175 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
176
177 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
178 CXXFLAGS = ['-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
179 REL_CFLAGS = [ '-O2' ]
180 REL_CCFLAGS = [ '-O2' ]
181 C_WARN = [ '-Wall' , '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
182
183 CC_WARN = [ '-Wall' ]
184
185
186
187 ##BF_DEPEND = 'true'
188 ##
189 ##AR = ar
190 ##ARFLAGS = ruv
191 ##ARFLAGSQUIET = ru
192 ##
193
194 ##FIX_STUBS_WARNINGS = -Wno-unused
195
196 LLIBS = 'c m dl pthread dmedia movie'
197 ##LOPTS = --dynamic
198 ##DYNLDFLAGS = -shared $(LDFLAGS)
199
200 BF_PROFILE_FLAGS = ['-pg','-g']
201 BF_PROFILE = 'false'
202
203 BF_DEBUG = 'false'
204 BF_DEBUG_FLAGS = '-g'
205
206 BF_BUILDDIR = '../build/aix4'
207 BF_INSTALLDIR='../install/aix4'
208 BF_DOCDIR='../install/doc'
209
210 #Link against pthread
211 LDIRS = []
212 LDIRS.append(BF_FREETYPE_LIBPATH)
213 LDIRS.append(BF_PNG_LIBPATH)
214 LDIRS.append(BF_ZLIB_LIBPATH)
215 LDIRS.append(BF_SDL_LIBPATH)
216 LDIRS.append(BF_OPENAL_LIBPATH)
217 LDIRS.append(BF_ICONV_LIBPATH)
218
219 PLATFORM_LINKFLAGS = []
220 for x in LDIRS:
221     PLATFORM_LINKFLAGS.append("-L"+x)
222     
223 PLATFORM_LINKFLAGS += ['-L${LCGDIR}/jpeg/lib' , '-L/usr/lib32',  '-n32', '-v', '-no_prelink']
224 print PLATFORM_LINKFLAGS
225 LINKFLAGS= PLATFORM_LINKFLAGS