remove mesh and object arguments from bmesh operators, these are stored within the...
[blender.git] / build_files / scons / config / linuxcross-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = '${LCGDIR}'
3
4 BF_PYTHON = LIBDIR + '/python'
5 BF_PYTHON_VERSION = '3.2'
6 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
7 BF_PYTHON_BINARY = 'python'
8 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}mw'
9 BF_PYTHON_DLL = 'python31'
10 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
11
12 WITH_BF_OPENAL = True
13 WITH_BF_STATICOPENAL = False
14 BF_OPENAL = LIBDIR + '/openal'
15 BF_OPENAL_INC = '${BF_OPENAL}/include'
16 BF_OPENAL_LIB = 'OpenAL32 wrap_oal'
17 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
18 # Warning, this static lib configuration is untested! users of this OS please confirm.
19 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
20
21 # Warning, this static lib configuration is untested! users of this OS please confirm.
22 BF_CXX = '/usr'
23 WITH_BF_STATICCXX = False
24 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
25
26 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
27 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
28 BF_LIBSAMPLERATE_LIB = 'samplerate'
29 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
30
31 WITH_BF_SDL = True
32 BF_SDL = LIBDIR + '/sdl'
33 BF_SDL_INC = '${BF_SDL}/include'
34 BF_SDL_LIB = 'SDL'
35 BF_SDL_LIBPATH = '${BF_SDL}/lib'
36
37 WITH_BF_JACK = False
38 BF_JACK = LIBDIR + '/jack'
39 BF_JACK_INC = '${BF_JACK}/include'
40 BF_JACK_LIB = 'jack'
41 BF_JACK_LIBPATH = '${BF_JACK}/lib'
42
43 WITH_BF_SNDFILE = False
44 BF_SNDFILE = LIBDIR + '/sndfile'
45 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
46 BF_SNDFILE_LIB = 'sndfile-1'
47 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
48
49 BF_PTHREADS = LIBDIR + '/pthreads'
50 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
51 BF_PTHREADS_LIB = 'pthreadGC2'
52 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
53
54 WITH_BF_OPENEXR = True
55 WITH_BF_STATICOPENEXR = False
56 BF_OPENEXR = LIBDIR + '/gcc/openexr'
57 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
58 BF_OPENEXR_LIB = ' Half IlmImf Iex IlmThread '
59 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
60 # Warning, this static lib configuration is untested! users of this OS please confirm.
61 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'
62
63 WITH_BF_DDS = True
64
65 WITH_BF_JPEG = True
66 BF_JPEG = LIBDIR + '/jpeg'
67 BF_JPEG_INC = '${BF_JPEG}/include'
68 BF_JPEG_LIB = 'libjpeg'
69 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
70
71 WITH_BF_PNG = True
72 BF_PNG = LIBDIR + '/png'
73 BF_PNG_INC = '${BF_PNG}/include'
74 BF_PNG_LIB = 'png'
75 BF_PNG_LIBPATH = '${BF_PNG}/lib'
76
77 WITH_BF_TIFF = True
78 BF_TIFF = LIBDIR + '/gcc/tiff'
79 BF_TIFF_INC = '${BF_TIFF}/include'
80 BF_TIFF_LIB = 'tiff'
81 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
82
83 WITH_BF_ZLIB = True
84 BF_ZLIB = LIBDIR + '/zlib'
85 BF_ZLIB_INC = '${BF_ZLIB}/include'
86 BF_ZLIB_LIB = 'libz'
87 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
88
89 WITH_BF_INTERNATIONAL = True
90
91 BF_GETTEXT = LIBDIR + '/gcc/gettext'
92 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
93 BF_GETTEXT_LIB = 'intl'
94 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
95
96 WITH_BF_GAMEENGINE = True
97 WITH_BF_PLAYER = False
98
99 WITH_BF_BULLET = True
100 BF_BULLET = '#extern/bullet2/src'
101 BF_BULLET_INC = '${BF_BULLET}'
102 BF_BULLET_LIB = 'extern_bullet'
103
104 BF_WINTAB = LIBDIR + '/wintab'
105 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
106
107 # enable freetype2 support for text objects
108 BF_WITH_FREETYPE = True
109 BF_FREETYPE = LIBDIR + '/gcc/freetype'
110 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
111 BF_FREETYPE_LIB = 'freetype'
112 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
113
114 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
115 BF_QUICKTIME = '/usr/local'
116 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
117
118 WITH_BF_ICONV = False
119 BF_ICONV = LIBDIR + "/gcc/iconv"
120 BF_ICONV_INC = '${BF_ICONV}/include'
121 BF_ICONV_LIB = 'iconv'
122 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
123
124 WITH_BF_BINRELOC = False
125
126 # enable ffmpeg  support
127 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
128 BF_FFMPEG = LIBDIR + '/ffmpeg'
129 BF_FFMPEG_LIB = 'avformat-53 avcodec-53 avdevice-53 avutil-51 swscale-2'
130 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
131 BF_FFMPEG_LIBPATH = '${BF_FFMPEG}/lib'
132 BF_FFMPEG_DLL = '${BF_FFMPEG_LIBPATH}/avformat-53.dll ${BF_FFMPEG_LIBPATH}/avcodec-53.dll ${BF_FFMPEG_LIBPATH}/avdevice-53.dll ${BF_FFMPEG_LIBPATH}/avutil-51.dll ${BF_FFMPEG_LIBPATH}/swscale-2.dll'
133
134 WITH_BF_OPENJPEG = True
135 BF_OPENJPEG = '#extern/libopenjpeg'
136 BF_OPENJPEG_LIB = ''
137 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
138 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
139
140 WITH_BF_FFTW3 = False
141 BF_FFTW3 = LIBDIR + '/gcc/fftw3'
142 BF_FFTW3_INC = '${BF_FFTW3}/include'
143 BF_FFTW3_LIB = 'fftw3'
144 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
145
146 WITH_BF_REDCODE = False
147 BF_REDCODE_INC = '#extern'
148
149 # Mesa Libs should go here if your using them as well....
150 WITH_BF_STATICOPENGL = False
151 BF_OPENGL = 'C:\\MingW'
152 BF_OPENGL_INC = '${BF_OPENGL}/include'
153 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
154 BF_OPENGL_LIB = 'opengl32 glu32'
155 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a']
156
157 WITH_BF_OPENMP = False
158 BF_OPENMP = LIBDIR + '/gcc/gomp'
159 BF_OPENMP_INC = '${BF_OPENMP}/include'
160 BF_OPENMP_LIBPATH = '${BF_OPENMP}/lib'
161
162 WITH_BF_COLLADA = False
163 BF_COLLADA = '#source/blender/collada'
164 BF_COLLADA_INC = '${BF_COLLADA}'
165 BF_COLLADA_LIB = 'bf_collada'
166
167 BF_OPENCOLLADA = LIBDIR + '/gcc/opencollada'
168 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
169 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver expat pcre buffer ftoa'
170 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib ${BF_ICONV_LIBPATH}'
171
172 #Ray trace optimization
173 WITH_BF_RAYOPTIMIZATION = True
174 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse']
175
176 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
177
178 CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE']
179 CXXFLAGS = ['-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
180 REL_CFLAGS = ['-DNDEBUG',  '-O2']
181 REL_CCFLAGS = ['-DNDEBUG',  '-O2']
182 C_WARN = ['-Wall', '-Wstrict-prototypes', '-Wno-char-subscripts', '-Wdeclaration-after-statement']
183
184 CC_WARN = [ '-Wall' ]
185
186 LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++', '-luuid', '-lole32'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
187
188 PLATFORM_LINKFLAGS = ['--stack,2097152']
189
190 BF_DEBUG = False
191 BF_DEBUG_CCFLAGS = ['-g', '-D_DEBUG']
192
193 BF_PROFILE = False
194 BF_PROFILE_CCFLAGS = ['-pg','-g']
195 BF_PROFILE_LINKFLAGS = ['-pg']
196
197 BF_BUILDDIR = '../build/linuxcross'
198 BF_INSTALLDIR='../install/linuxcross'