* make BulletSoftBody own small lib to make sure bullet libs don't grow too large...
[blender-staging.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 BF_PYTHON = '/usr'
8 BF_PYTHON_VERSION = '2.5'
9 WITH_BF_STATICPYTHON = 'false'
10 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
11 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
12 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
13 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
14 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}.a'
15
16 WITH_BF_OPENAL = 'true'
17 WITH_BF_STATICOPENAL = 'false'
18 BF_OPENAL = '/usr'
19 BF_OPENAL_INC = '${BF_OPENAL}/include'
20 BF_OPENAL_LIB = 'openal'
21 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
22
23 # some distros have a separate libalut
24 # if you get linker complaints, you need to uncomment the line below
25 # BF_OPENAL_LIB = 'openal alut'  
26 # BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a ${BF_OPENAL}/lib/libalut.a'
27
28 WITH_BF_SDL = 'true'
29 BF_SDL = '/usr' #$(shell sdl-config --prefix)
30 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
31 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
32
33 WITH_BF_FMOD = 'false'
34 BF_FMOD = LIBDIR + '/fmod'
35
36 WITH_BF_OPENEXR = 'true'
37 WITH_BF_STATICOPENEXR = 'false'
38 BF_OPENEXR = '/usr'
39 # when compiling with your own openexr lib you might need to set...
40 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
41
42 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
43 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
44 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'
45 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
46
47
48 WITH_BF_DDS = 'true'
49
50 WITH_BF_JPEG = 'true'
51 BF_JPEG = '/usr'
52 BF_JPEG_INC = '${BF_JPEG}/include'
53 BF_JPEG_LIB = 'jpeg'
54
55 WITH_BF_PNG = 'true'
56 BF_PNG = '/usr'
57 BF_PNG_INC = '${BF_PNG}/include'
58 BF_PNG_LIB = 'png'
59
60 BF_TIFF = '/usr'
61 BF_TIFF_INC = '${BF_TIFF}/include'
62
63 WITH_BF_ZLIB = 'true'
64 BF_ZLIB = '/usr'
65 BF_ZLIB_INC = '${BF_ZLIB}/include'
66 BF_ZLIB_LIB = 'z'
67
68 WITH_BF_INTERNATIONAL = 'true'
69
70 BF_GETTEXT = '/usr'
71 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
72 BF_GETTEXT_LIB = 'gettextlib'
73 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
74
75 WITH_BF_FTGL = 'true'
76 BF_FTGL = '#extern/bFTGL'
77 BF_FTGL_INC = '${BF_FTGL}/include'
78 BF_FTGL_LIB = 'extern_ftgl'
79
80 WITH_BF_GAMEENGINE='false'
81
82 WITH_BF_ODE = 'false'
83 BF_ODE = LIBDIR + '/ode'
84 BF_ODE_INC = BF_ODE + '/include'
85 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
86
87 WITH_BF_BULLET = 'true'
88 BF_BULLET = '#extern/bullet2/src'
89 BF_BULLET_INC = '${BF_BULLET}'
90 BF_BULLET_LIB = 'extern_bullet'
91
92 BF_SOLID = '#extern/solid'
93 BF_SOLID_INC = '${BF_SOLID}'
94 BF_SOLID_LIB = 'extern_solid'
95
96 WITH_BF_YAFRAY = 'true'
97
98 #WITH_BF_NSPR = 'true'
99 #BF_NSPR = $(LIBDIR)/nspr
100 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
101 #BF_NSPR_LIB = 
102
103 # Uncomment the following line to use Mozilla inplace of netscape
104 #CPPFLAGS += -DMOZ_NOT_NET
105 # Location of MOZILLA/Netscape header files...
106 #BF_MOZILLA = $(LIBDIR)/mozilla
107 #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
108 #BF_MOZILLA_LIB =
109 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
110 # if this is not set.
111 #
112 # Be paranoid regarding library creation (do not update archives)
113 #BF_PARANOID = 'true'
114
115 # enable freetype2 support for text objects
116 BF_FREETYPE = '/usr'
117 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
118 BF_FREETYPE_LIB = 'freetype'
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 WITH_BF_BINRELOC = 'true'
131
132 # enable ffmpeg  support
133 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
134 BF_FFMPEG = '#extern/ffmpeg'
135 BF_FFMPEG_LIB = ''
136 # Uncomment the following two lines to use system's ffmpeg
137 # BF_FFMPEG = '/usr'
138 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
139 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
140 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
141
142 WITH_BF_OPENJPEG = 'true' 
143 BF_OPENJPEG = '#extern/libopenjpeg'
144 BF_OPENJPEG_LIB = ''
145 # Uncomment the following two lines to use system's ffmpeg
146 # BF_FFMPEG = '/usr'
147 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
148 BF_OPENJPEG_INC = '${BF_OPENJPEG}/include'
149 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
150
151 WITH_BF_REDCODE = 'false'  
152 BF_REDCODE = '#extern/libredcode'
153 BF_REDCODE_LIB = ''
154 # Uncomment the following two lines to use system's ffmpeg
155 # BF_FFMPEG = '/usr'
156 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
157 BF_REDCODE_INC = '${BF_REDCODE}/include'
158 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
159
160 # Mesa Libs should go here if your using them as well....
161 WITH_BF_STATICOPENGL = 'false'
162 BF_OPENGL = '/usr'
163 BF_OPENGL_INC = '${BF_OPENGL}/include'
164 BF_OPENGL_LIB = 'GL GLU X11 Xi'
165 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
166 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'
167
168 ##
169 CC = 'gcc'
170 CXX = 'g++'
171 ##ifeq ($CPU),alpha)
172 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
173
174 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
175
176 CPPFLAGS = ['-DXP_UNIX']
177 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
178 REL_CFLAGS = ['-O2']
179 REL_CCFLAGS = ['-O2']
180 ##BF_DEPEND = 'true'
181 ##
182 ##AR = ar
183 ##ARFLAGS = ruv
184 ##ARFLAGSQUIET = ru
185 ##
186 C_WARN = '-Wall -Wno-char-subscripts -Wdeclaration-after-statement'
187
188 CC_WARN = '-Wall'
189
190 ##FIX_STUBS_WARNINGS = -Wno-unused
191
192 LLIBS = 'util c m dl pthread stdc++'
193 ##LOPTS = --dynamic
194 ##DYNLDFLAGS = -shared $(LDFLAGS)
195
196 BF_PROFILE_FLAGS = ['-pg','-g']
197 BF_PROFILE = 'false'
198
199 BF_DEBUG = 'false'
200 BF_DEBUG_FLAGS = '-g'
201
202 BF_BUILDDIR = '../build/linux2'
203 BF_INSTALLDIR='../install/linux2'
204
205
206 #Link against pthread
207 PLATFORM_LINKFLAGS = ['-pthread']
208