* make BulletSoftBody own small lib to make sure bullet libs don't grow too large...
[blender-staging.git] / config / linuxcross-config.py
1 LCGDIR = '../lib/windows'
2 LIBDIR = '${LCGDIR}'
3
4 WITH_BF_VERSE = 'false'
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 WITH_BF_YAFRAY = 'true'
8
9 BF_PYTHON = LIBDIR + '/python'
10 BF_PYTHON_VERSION = '2.5'
11 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
12 BF_PYTHON_BINARY = 'python'
13 BF_PYTHON_LIB = 'python25'
14 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
15
16 WITH_BF_OPENAL = 'true'
17 WITH_BF_STATICOPENAL = 'false'
18 BF_OPENAL = LIBDIR + '/openal'
19 BF_OPENAL_INC = '${BF_OPENAL}/include'
20 BF_OPENAL_LIB = 'openal_static'
21 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
22 # Warning, this static lib configuration is untested! users of this OS please confirm.
23 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
24
25 WITH_BF_SDL = 'true'
26 BF_SDL = LIBDIR + '/sdl'
27 BF_SDL_INC = '${BF_SDL}/include'
28 BF_SDL_LIB = 'SDL'
29 BF_SDL_LIBPATH = '${BF_SDL}/lib'
30
31 BF_PTHREADS = LIBDIR + '/pthreads'
32 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
33 BF_PTHREADS_LIB = 'pthreadGC2'
34 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
35
36 WITH_BF_FMOD = 'false'
37 BF_FMOD = LIBDIR + '/fmod'
38
39 WITH_BF_OPENEXR = 'true'
40 WITH_BF_STATICOPENEXR = 'false'
41 BF_OPENEXR = LIBDIR + '/gcc/openexr'
42 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
43 BF_OPENEXR_LIB = ' Half IlmImf Iex '
44 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
45 # Warning, this static lib configuration is untested! users of this OS please confirm.
46 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'
47
48 WITH_BF_DDS = 'true'
49
50 WITH_BF_JPEG = 'true'
51 BF_JPEG = LIBDIR + '/jpeg'
52 BF_JPEG_INC = '${BF_JPEG}/include'
53 BF_JPEG_LIB = 'jpeg'
54 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
55
56 WITH_BF_PNG = 'true'
57 BF_PNG = LIBDIR + '/png'
58 BF_PNG_INC = '${BF_PNG}/include'
59 BF_PNG_LIB = 'png'
60 BF_PNG_LIBPATH = '${BF_PNG}/lib'
61
62 BF_TIFF = LIBDIR + '/tiff'
63 BF_TIFF_INC = '${BF_TIFF}/include'
64
65 WITH_BF_ZLIB = 'true'
66 BF_ZLIB = LIBDIR + '/zlib'
67 BF_ZLIB_INC = '${BF_ZLIB}/include'
68 #BF_ZLIB_LIB = 'z'
69 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
70
71 WITH_BF_INTERNATIONAL = 'true'
72
73 BF_GETTEXT = LIBDIR + '/gettext'
74 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
75 BF_GETTEXT_LIB = 'gnu_gettext'
76 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
77
78 WITH_BF_FTGL = 'true'
79 BF_FTGL = LIBDIR + '/ftgl'
80 BF_FTGL_INC = '${BF_FTGL}/include'
81 BF_FTGL_LIB = 'extern_ftgl'
82
83 WITH_BF_GAMEENGINE = 'false'
84
85 WITH_BF_ODE = 'true'
86 BF_ODE = LIBDIR + '/ode'
87 BF_ODE_INC = BF_ODE + '/include'
88 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
89
90 WITH_BF_BULLET = 'true'
91 BF_BULLET = '#extern/bullet2/src'
92 BF_BULLET_INC = '${BF_BULLET}'
93 BF_BULLET_LIB = 'extern_bullet'
94
95 BF_SOLID = '#extern/solid'
96 BF_SOLID_INC = '${BF_SOLID}'
97 BF_SOLID_LIB = 'extern_solid'
98
99 # enable freetype2 support for text objects
100 BF_FREETYPE = LIBDIR + '/gcc/freetype'
101 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
102 BF_FREETYPE_LIB = 'freetype'
103 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
104
105 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
106 BF_QUICKTIME = '/usr/local'
107 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
108
109 WITH_BF_ICONV = 'false'
110 BF_ICONV = LIBDIR + "/iconv"
111 BF_ICONV_INC = '${BF_ICONV}/include'
112 BF_ICONV_LIB = 'iconv'
113 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
114
115 # Mesa Libs should go here if your using them as well....
116 WITH_BF_STATICOPENGL = 'false'
117 BF_OPENGL = 'C:\\MingW'
118 BF_OPENGL_INC = '${BF_OPENGL}/include'
119 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
120 BF_OPENGL_LIB = 'opengl32 glu32'
121 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
122              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
123              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
124
125 CC = 'i586-mingw32msvc-gcc'
126 CXX = 'i586-mingw32msvc-g++'
127
128 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
129
130 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
131 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
132 REL_CFLAGS = [ '-O2' ]
133 REL_CCFLAGS = [ '-O2' ]
134 C_WARN = [ '-Wall' , '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
135
136 CC_WARN = [ '-Wall' ]
137
138
139 LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
140
141 BF_DEBUG = 'false'
142 BF_DEBUG_FLAGS= ''
143
144 BF_BUILDDIR = '../build/linuxcross'
145 BF_INSTALLDIR='../install/linuxcross'