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