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