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