- BGE, Some sensors, stored the event manager in 2 places (became confusing to do...
[blender.git] / config / linux2-config.py
1 LCGDIR = '../lib/linux2'
2 LIBDIR = "${LCGDIR}"
3
4 WITH_BF_VERSE = False
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 def py_version_string():
8         '''
9         returns py version - "2.5", "2.6" etc
10         '''
11         import platform
12         ver = platform.python_version_tuple()
13         return '%d.%d' % (int(ver[0]), int(ver[1])) # py2.5 uses strings, 2.6 ints
14
15 BF_PYTHON = '/usr'
16 BF_PYTHON_VERSION = py_version_string()
17 WITH_BF_STATICPYTHON = False
18 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
19 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
20 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
21 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
22 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}.a'
23
24 WITH_BF_OPENAL = True
25 WITH_BF_STATICOPENAL = False
26 BF_OPENAL = '/usr'
27 BF_OPENAL_INC = '${BF_OPENAL}/include'
28 BF_OPENAL_LIB = 'openal'
29 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
30
31 BF_CXX = '/usr'
32 WITH_BF_STATICCXX = False
33 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
34
35 WITH_BF_SDL = True
36 BF_SDL = '/usr' #$(shell sdl-config --prefix)
37 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
38 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
39
40 WITH_BF_OPENEXR = True
41 WITH_BF_STATICOPENEXR = False
42 BF_OPENEXR = '/usr'
43 # when compiling with your own openexr lib you might need to set...
44 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
45
46 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
47 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
48 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'
49 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
50
51
52 WITH_BF_DDS = True
53
54 WITH_BF_JPEG = True
55 BF_JPEG = '/usr'
56 BF_JPEG_INC = '${BF_JPEG}/include'
57 BF_JPEG_LIB = 'jpeg'
58
59 WITH_BF_PNG = True
60 BF_PNG = '/usr'
61 BF_PNG_INC = '${BF_PNG}/include'
62 BF_PNG_LIB = 'png'
63
64 BF_TIFF = '/usr'
65 BF_TIFF_INC = '${BF_TIFF}/include'
66
67 WITH_BF_ZLIB = True
68 BF_ZLIB = '/usr'
69 BF_ZLIB_INC = '${BF_ZLIB}/include'
70 BF_ZLIB_LIB = 'z'
71
72 WITH_BF_INTERNATIONAL = True
73
74 BF_GETTEXT = '/usr'
75 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
76 BF_GETTEXT_LIB = 'gettextlib'
77 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
78
79 WITH_BF_FTGL = True
80 BF_FTGL = '#extern/bFTGL'
81 BF_FTGL_INC = '${BF_FTGL}/include'
82 BF_FTGL_LIB = 'extern_ftgl'
83
84 WITH_BF_GAMEENGINE = True
85 WITH_BF_PLAYER = True
86
87 WITH_BF_ODE = False
88 BF_ODE = LIBDIR + '/ode'
89 BF_ODE_INC = BF_ODE + '/include'
90 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
91
92 WITH_BF_BULLET = True
93 BF_BULLET = '#extern/bullet2/src'
94 BF_BULLET_INC = '${BF_BULLET}'
95 BF_BULLET_LIB = 'extern_bullet'
96
97 BF_SOLID = '#extern/solid'
98 BF_SOLID_INC = '${BF_SOLID}'
99 BF_SOLID_LIB = 'extern_solid'
100
101 WITH_BF_YAFRAY = True
102
103 #WITH_BF_NSPR = True
104 #BF_NSPR = $(LIBDIR)/nspr
105 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
106 #BF_NSPR_LIB = 
107
108 # Uncomment the following line to use Mozilla inplace of netscape
109 #CPPFLAGS += -DMOZ_NOT_NET
110 # Location of MOZILLA/Netscape header files...
111 #BF_MOZILLA = $(LIBDIR)/mozilla
112 #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
113 #BF_MOZILLA_LIB =
114 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
115 # if this is not set.
116 #
117 # Be paranoid regarding library creation (do not update archives)
118 #BF_PARANOID = True
119
120 # enable freetype2 support for text objects
121 BF_FREETYPE = '/usr'
122 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
123 BF_FREETYPE_LIB = 'freetype'
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'
133 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
134
135 WITH_BF_BINRELOC = True
136
137 # enable ffmpeg  support
138 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
139 BF_FFMPEG = '#extern/ffmpeg'
140 BF_FFMPEG_LIB = ''
141 # Uncomment the following two lines to use system's ffmpeg
142 # BF_FFMPEG = '/usr'
143 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
144 BF_FFMPEG_INC = '${BF_FFMPEG}'
145 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
146
147 # enable ogg, vorbis and theora in ffmpeg
148 WITH_BF_OGG = False  # -DWITH_OGG 
149 BF_OGG = '/usr'
150 BF_OGG_INC = '${BF_OGG}/include'
151 BF_OGG_LIB = 'ogg vorbis vorbisenc theoraenc theoradec'
152
153 WITH_BF_OPENJPEG = True 
154 BF_OPENJPEG = '#extern/libopenjpeg'
155 BF_OPENJPEG_LIB = ''
156 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
157 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
158
159 WITH_BF_REDCODE = False  
160 BF_REDCODE = '#extern/libredcode'
161 BF_REDCODE_LIB = ''
162 # BF_REDCODE_INC = '${BF_REDCODE}/include'
163 BF_REDCODE_INC = '${BF_REDCODE}/../' #C files request "libredcode/format.h" which is in "#extern/libredcode/format.h", stupid but compiles for now.
164 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
165
166 # Mesa Libs should go here if your using them as well....
167 WITH_BF_STATICOPENGL = False
168 BF_OPENGL = '/usr'
169 BF_OPENGL_INC = '${BF_OPENGL}/include'
170 BF_OPENGL_LIB = 'GL GLU X11 Xi'
171 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
172 BF_OPENGL_LIB_STATIC = '${BF_OPENGL_LIBPATH}/libGL.a ${BF_OPENGL_LIBPATH}/libGLU.a ${BF_OPENGL_LIBPATH}/libXxf86vm.a ${BF_OPENGL_LIBPATH}/libX11.a ${BF_OPENGL_LIBPATH}/libXi.a ${BF_OPENGL_LIBPATH}/libXext.a ${BF_OPENGL_LIBPATH}/libXxf86vm.a'
173
174 ##
175 CC = 'gcc'
176 CXX = 'g++'
177 ##ifeq ($CPU),alpha)
178 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
179
180 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
181
182 CPPFLAGS = ['-DXP_UNIX']
183 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
184 REL_CFLAGS = ['-O2']
185 REL_CCFLAGS = ['-O2']
186 ##BF_DEPEND = True
187 ##
188 ##AR = ar
189 ##ARFLAGS = ruv
190 ##ARFLAGSQUIET = ru
191 ##
192 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement']
193 CC_WARN = ['-Wall']
194 CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
195
196
197 ##FIX_STUBS_WARNINGS = -Wno-unused
198
199 LLIBS = ['util', 'c', 'm', 'dl', 'pthread', 'stdc++']
200 ##LOPTS = --dynamic
201 ##DYNLDFLAGS = -shared $(LDFLAGS)
202
203 BF_PROFILE = False
204 BF_PROFILE_CCFLAGS = ['-pg','-g']
205 BF_PROFILE_LINKFLAGS = ['-pg']
206
207 BF_DEBUG = False
208 BF_DEBUG_CCFLAGS = ['-g']
209
210 BF_BUILDDIR = '../build/linux2'
211 BF_INSTALLDIR='../install/linux2'
212 BF_DOCDIR='../install/doc'
213
214
215 #Link against pthread
216 PLATFORM_LINKFLAGS = ['-pthread']
217