Initial support of linux 32/64 bit for buildbot:
[blender.git] / build_files / buildbot / config / user-config-i686.py
1 BF_BUILDDIR = '../blender-build/linux-glibc27-i686'
2 BF_INSTALLDIR = '../blender-install/linux-glibc27-i686'
3
4 # Python configuration
5 BF_PYTHON_VERSION = '3.2'
6 BF_PYTHON_ABI_FLAGS = 'mu'
7 BF_PYTHON = '/opt/python3.2'
8
9 WITH_BF_STATICPYTHON = True
10
11 # OpenCollada configuration
12 WITH_BF_COLLADA = True
13 BF_OPENCOLLADA = '/opt/opencollada'
14 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
15 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver buffer ftoa libxml2-static libexpat-static libpcre-static'
16 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib /home/sources/staticlibs/lib32'
17 BF_PCRE_LIB = ''
18 BF_EXPAT_LIB = ''
19
20 # FFMPEG configuration
21 WITH_BF_FFMPEG = True
22 WITH_BF_STATICFFMPEG = True
23
24 # Used for linking against system ffmpeg, but it gives pixelization,, so fall back to ffmpeg from 2.52 temporary
25 #BF_FFMPEG_LIB_STATIC = '${BF_FFMPEG_LIBPATH}/libavformat.a ${BF_FFMPEG_LIBPATH}/libavcodec.a ${BF_FFMPEG_LIBPATH}/libswscale.a ' + \
26 #    '${BF_FFMPEG_LIBPATH}/libavutil.a ${BF_FFMPEG_LIBPATH}/libavdevice.a ${BF_FFMPEG_LIBPATH}/libdc1394.a ' + \
27 #    '${BF_FFMPEG_LIBPATH}/libraw1394.a ${BF_FFMPEG_LIBPATH}/libdirac_encoder.a ${BF_FFMPEG_LIBPATH}/libschroedinger-1.0.a ' + \
28 #    '${BF_FFMPEG_LIBPATH}/libfaad.a ${BF_FFMPEG_LIBPATH}/libtheora.a ' + \
29 #    '${BF_FFMPEG_LIBPATH}/libspeex.a ${BF_FFMPEG_LIBPATH}/libbz2.a ${BF_FFMPEG_LIBPATH}/liboil-0.3.a ${BF_FFMPEG_LIBPATH}/libogg.a ' + \
30 #    '${BF_FFMPEG_LIBPATH}/libvorbisenc.a ${BF_FFMPEG_LIBPATH}/libvorbis.a ${BF_FFMPEG_LIBPATH}/libgsm.a'
31
32 BF_FFMPEG = '/home/sources/staticlibs/ffmpeg'
33 BF_FFMPEG_LIBPATH = '${BF_FFMPEG}/lib32'
34 BF_FFMPEG_LIB_STATIC = '${BF_FFMPEG_LIBPATH}/libextern_libavformat.a ${BF_FFMPEG_LIBPATH}/libextern_libswscale.a ' + \
35     '${BF_FFMPEG_LIBPATH}/libextern_libavcodec.a ${BF_FFMPEG_LIBPATH}/libextern_libavdevice.a ' + \
36     '${BF_FFMPEG_LIBPATH}/libextern_libavutil.a ${BF_FFMPEG_LIBPATH}/libextern_xvidcore.a ' + \
37     '${BF_FFMPEG_LIBPATH}/libextern_libmp3lame.a ${BF_FFMPEG_LIBPATH}/libextern_x264.a'
38
39 # Don't depend on system's libstdc++
40 WITH_BF_STATICCXX = True
41 BF_CXX_LIB_STATIC = '/usr/lib/gcc/i486-linux-gnu/4.3.2/libstdc++.a'
42
43 WITH_BF_OPENAL = True
44 WITH_BF_STATICOPENAL = True
45 BF_OPENAL_LIB_STATIC = '/opt/openal/lib/libopenal.a'
46
47 WITH_BF_GETTEXT_STATIC = True
48 BF_FREETYPE_LIB_STATIC = True
49
50 WITH_BF_OPENEXR = True
51 WITH_BF_STATICOPENEXR = True
52
53 WITH_BF_TIFF = True
54 WITH_BF_STATICTIFF = True
55 BF_TIFF_LIB_STATIC = '${BF_TIFF}/lib/libtiff.a'
56
57 WITH_BF_JPEG = True
58 BF_JPEG_LIB = 'libjpeg'
59 BF_JPEG_LIBPATH = '/home/sources/staticlibs/lib32'
60
61 WITH_BF_PNG = True
62 BF_PNG_LIB = 'libpng'
63 BF_PNG_LIBPATH = '/home/sources/staticlibs/lib32'
64
65 WITH_BF_STATICLIBSAMPLERATE = True
66
67 WITH_BF_STATICZLIB = True
68 BF_ZLIB_LIB_STATIC= '${BF_ZLIB}/lib/libz.a'
69
70 WITH_BF_SDL = True
71 WITH_BF_OGG = True
72
73 WITH_BF_OPENMP = True
74
75 WITH_BF_GAMEENGINE = True
76 WITH_BF_BULLET = True
77
78 # Blender player (would be enabled in it's own config)
79 WITH_BF_PLAYER = False
80
81 # Compilation and optimization
82 BF_DEBUG = False
83 REL_CFLAGS = ['-O2']
84 REL_CCFLAGS = ['-O2']
85 PLATFORM_LINKFLAGS = ['-L/home/sources/staticlibs/lib32']