Fix #28766: object properties > display > transparency no longer worked in solid
[blender.git] / build_files / scons / config / linux-config.py
1 LCGDIR = '../lib/linux'
2 LIBDIR = "${LCGDIR}"
3
4 BF_PYTHON_ABI_FLAGS = 'm'  # Most common for linux distros
5 BF_PYTHON = '/usr'
6 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
7 BF_PYTHON_VERSION = '3.2'
8 WITH_BF_STATICPYTHON = False
9 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}${BF_PYTHON_ABI_FLAGS}'
10 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
11 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}${BF_PYTHON_ABI_FLAGS}'  # BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
12 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
13 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}${BF_PYTHON_ABI_FLAGS}.a'
14
15 WITH_BF_OPENAL = True
16 WITH_BF_STATICOPENAL = False
17 BF_OPENAL = '/usr'
18 BF_OPENAL_INC = '${BF_OPENAL}/include'
19 BF_OPENAL_LIB = 'openal'
20 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
21
22 BF_CXX = '/usr'
23 WITH_BF_STATICCXX = False
24 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
25
26 WITH_BF_JACK = False
27 BF_JACK = '/usr'
28 BF_JACK_INC = '${BF_JACK}/include/jack'
29 BF_JACK_LIB = 'jack'
30 BF_JACK_LIBPATH = '${BF_JACK}/lib'
31
32 WITH_BF_SNDFILE = False
33 WITH_BF_STATICSNDFILE = False
34 BF_SNDFILE = '/usr'
35 BF_SNDFILE_INC = '${BF_SNDFILE}/include/sndfile'
36 BF_SNDFILE_LIB = 'sndfile'
37 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
38 BF_SNDFILE_LIB_STATIC = '${BF_SNDFILE}/lib/libsndfile.a ${BF_OGG}/lib/libvorbis.a ${BF_OGG}/lib/libFLAC.a ${BF_OGG}/lib/libvorbisenc.a ${BF_OGG}/lib/libogg.a'
39
40 WITH_BF_SDL = True
41 BF_SDL = '/usr' #$(shell sdl-config --prefix)
42 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
43 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
44
45 WITH_BF_OPENEXR = True
46 WITH_BF_STATICOPENEXR = False
47 BF_OPENEXR = '/usr'
48 # when compiling with your own openexr lib you might need to set...
49 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
50
51 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
52 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
53 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'
54 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
55
56
57 WITH_BF_DDS = True
58
59 WITH_BF_JPEG = True
60 BF_JPEG = '/usr'
61 BF_JPEG_INC = '${BF_JPEG}/include'
62 BF_JPEG_LIB = 'jpeg'
63
64 WITH_BF_PNG = True
65 BF_PNG = '/usr'
66 BF_PNG_INC = '${BF_PNG}/include'
67 BF_PNG_LIB = 'png'
68
69 WITH_BF_TIFF = True
70 BF_TIFF = '/usr'
71 BF_TIFF_INC = '${BF_TIFF}/include'
72 BF_TIFF_LIB = 'tiff'
73
74 WITH_BF_ZLIB = True
75 BF_ZLIB = '/usr'
76 BF_ZLIB_INC = '${BF_ZLIB}/include'
77 BF_ZLIB_LIB = 'z'
78
79 WITH_BF_INTERNATIONAL = True
80
81 BF_GETTEXT = '/usr'
82 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
83 BF_GETTEXT_LIB = 'gettextlib'
84 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
85 #WITH_BF_GETTEXT_STATIC = True
86 #BF_GETTEXT_LIB_STATIC = '${BF_GETTEXT}/lib/libgettextlib.a'
87
88 WITH_BF_GAMEENGINE = True
89 WITH_BF_PLAYER = True
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 # enable freetype2 support for text objects
97 BF_FREETYPE = '/usr'
98 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
99 BF_FREETYPE_LIB = 'freetype'
100 #WITH_BF_FREETYPE_STATIC = True
101 #BF_FREETYPE_LIB_STATIC = '${BF_FREETYPE}/lib/libfreetype.a'
102
103 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
104 BF_QUICKTIME = '/usr/local'
105 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
106
107 WITH_BF_ICONV = False
108 BF_ICONV = LIBDIR + "/iconv"
109 BF_ICONV_INC = '${BF_ICONV}/include'
110 BF_ICONV_LIB = 'iconv'
111 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
112
113 WITH_BF_BINRELOC = True
114
115 # enable ffmpeg  support
116 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
117 BF_FFMPEG = '/usr'
118 BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
119 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
120 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
121 #WITH_BF_STATICFFMPEG = True
122 #BF_FFMPEG_LIB_STATIC = '${BF_FFMPEG_LIBPATH}/libavformat.a ${BF_FFMPEG_LIBPATH/libavcodec.a ${BF_FFMPEG_LIBPATH}/libswscale.a ${BF_FFMPEG_LIBPATH}/libavutil.a ${BF_FFMPEG_LIBPATH}/libavdevice.a'
123
124 # enable ogg, vorbis and theora in ffmpeg
125 WITH_BF_OGG = False  # -DWITH_OGG 
126 BF_OGG = '/usr'
127 BF_OGG_INC = '${BF_OGG}/include'
128 BF_OGG_LIB = 'ogg vorbis vorbisenc theoraenc theoradec'
129
130 WITH_BF_OPENJPEG = True 
131 BF_OPENJPEG = '#extern/libopenjpeg'
132 BF_OPENJPEG_LIB = ''
133 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
134 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
135
136 WITH_BF_FFTW3 = False
137 WITH_BF_STATICFFTW3 = False
138 BF_FFTW3 = '/usr'
139 BF_FFTW3_INC = '${BF_FFTW3}/include'
140 BF_FFTW3_LIB = 'fftw3'
141 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
142 BF_FFTW3_LIB_STATIC = '${BF_FFTW3_LIBPATH}/libfftw3.a'
143
144 WITH_BF_REDCODE = False  
145 BF_REDCODE = '#extern/libredcode'
146 BF_REDCODE_LIB = ''
147 # BF_REDCODE_INC = '${BF_REDCODE}/include'
148 BF_REDCODE_INC = '${BF_REDCODE}/../' #C files request "libredcode/format.h" which is in "#extern/libredcode/format.h", stupid but compiles for now.
149 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
150
151 # Mesa Libs should go here if your using them as well....
152 WITH_BF_STATICOPENGL = False
153 BF_OPENGL = '/usr'
154 BF_OPENGL_INC = '${BF_OPENGL}/include'
155 BF_OPENGL_LIB = 'GL GLU X11 Xi'
156 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
157 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'
158
159 WITH_BF_COLLADA = False
160 BF_COLLADA = '#source/blender/collada'
161 BF_COLLADA_INC = '${BF_COLLADA}'
162 BF_COLLADA_LIB = 'bf_collada'
163 BF_OPENCOLLADA = '/usr'
164 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}'
165 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver pcre buffer ftoa'
166 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib'
167 BF_PCRE = ''
168 BF_PCRE_LIB = 'pcre'
169 BF_PCRE_LIBPATH = '/usr/lib'
170 BF_EXPAT = '/usr'
171 BF_EXPAT_LIB = 'expat'
172 BF_EXPAT_LIBPATH = '/usr/lib'
173
174 WITH_BF_JEMALLOC = False
175 WITH_BF_STATICJEMALLOC = False
176 BF_JEMALLOC = '/usr'
177 BF_JEMALLOC_INC = '${BF_JEMALLOC}/include'
178 BF_JEMALLOC_LIBPATH = '${BF_JEMALLOC}/lib'
179 BF_JEMALLOC_LIB = 'jemalloc'
180 BF_JEMALLOC_LIB_STATIC = '${BF_JEMALLOC_LIBPATH}/libjemalloc.a'
181
182 WITH_BF_OPENMP = True
183
184 #Ray trace optimization
185 WITH_BF_RAYOPTIMIZATION = True
186 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse','-pthread']
187
188 #SpaceNavigator and friends
189 WITH_BF_3DMOUSE = True
190 BF_3DMOUSE = '/usr'
191 BF_3DMOUSE_INC = '${BF_3DMOUSE}/include'
192 BF_3DMOUSE_LIBPATH = '${BF_3DMOUSE}/lib'
193 BF_3DMOUSE_LIB = 'spnav'
194 BF_3DMOUSE_LIB_STATIC = '${BF_3DMOUSE_LIBPATH}/libspnav.a'
195
196 ##
197 CC = 'gcc'
198 CXX = 'g++'
199 ##ifeq ($CPU),alpha)
200 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
201
202 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
203
204 CPPFLAGS = []
205 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64','-D_LARGEFILE64_SOURCE']
206 # g++ 4.6, only needed for bullet
207 CXXFLAGS += ['-fpermissive']
208 if WITH_BF_FFMPEG:
209   # libavutil needs UINT64_C()
210   CXXFLAGS += ['-D__STDC_CONSTANT_MACROS', ]
211 REL_CFLAGS = ['-DNDEBUG', '-O2']
212 REL_CCFLAGS = ['-DNDEBUG', '-O2']
213 ##BF_DEPEND = True
214 ##
215 ##AR = ar
216 ##ARFLAGS = ruv
217 ##ARFLAGSQUIET = ru
218 ##
219 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wunused-parameter', '-Wstrict-prototypes', '-Werror=declaration-after-statement', '-Werror=implicit-function-declaration', '-Werror=return-type']
220 CC_WARN = ['-Wall']
221 CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
222
223
224 ##FIX_STUBS_WARNINGS = -Wno-unused
225
226 LLIBS = ['util', 'c', 'm', 'dl', 'pthread', 'stdc++']
227 ##LOPTS = --dynamic
228 ##DYNLDFLAGS = -shared $(LDFLAGS)
229
230 BF_PROFILE = False
231 BF_PROFILE_CCFLAGS = ['-pg','-g']
232 BF_PROFILE_LINKFLAGS = ['-pg']
233
234 BF_DEBUG = False
235 BF_DEBUG_CCFLAGS = ['-g', '-D_DEBUG']
236
237 BF_BUILDDIR = '../build/linux'
238 BF_INSTALLDIR='../install/linux'
239
240 #Link against pthread
241 PLATFORM_LINKFLAGS = ['-pthread']
242