svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / config / linuxcross-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = '${LCGDIR}'
3
4 BF_PYTHON = LIBDIR + '/python'
5 BF_PYTHON_VERSION = '2.5'
6 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
7 BF_PYTHON_BINARY = 'python'
8 BF_PYTHON_LIB = 'python25'
9 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
10
11 WITH_BF_OPENAL = True
12 WITH_BF_STATICOPENAL = False
13 BF_OPENAL = LIBDIR + '/openal'
14 BF_OPENAL_INC = '${BF_OPENAL}/include'
15 BF_OPENAL_LIB = 'openal_static'
16 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
17 # Warning, this static lib configuration is untested! users of this OS please confirm.
18 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
19
20 # Warning, this static lib configuration is untested! users of this OS please confirm.
21 BF_CXX = '/usr'
22 WITH_BF_STATICCXX = False
23 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.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_OPENEXR = True
37 WITH_BF_STATICOPENEXR = False
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 # Warning, this static lib configuration is untested! users of this OS please confirm.
43 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'
44
45 WITH_BF_DDS = True
46
47 WITH_BF_JPEG = True
48 BF_JPEG = LIBDIR + '/jpeg'
49 BF_JPEG_INC = '${BF_JPEG}/include'
50 BF_JPEG_LIB = 'jpeg'
51 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
52
53 WITH_BF_PNG = True
54 BF_PNG = LIBDIR + '/png'
55 BF_PNG_INC = '${BF_PNG}/include'
56 BF_PNG_LIB = 'png'
57 BF_PNG_LIBPATH = '${BF_PNG}/lib'
58
59 BF_TIFF = LIBDIR + '/tiff'
60 BF_TIFF_INC = '${BF_TIFF}/include'
61
62 WITH_BF_ZLIB = True
63 BF_ZLIB = LIBDIR + '/zlib'
64 BF_ZLIB_INC = '${BF_ZLIB}/include'
65 #BF_ZLIB_LIB = 'z'
66 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
67
68 WITH_BF_INTERNATIONAL = True
69
70 BF_GETTEXT = LIBDIR + '/gettext'
71 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
72 BF_GETTEXT_LIB = 'gnu_gettext'
73 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
74
75 WITH_BF_GAMEENGINE = False
76
77 WITH_BF_BULLET = True
78 BF_BULLET = '#extern/bullet2/src'
79 BF_BULLET_INC = '${BF_BULLET}'
80 BF_BULLET_LIB = 'extern_bullet'
81
82 BF_WINTAB = LIBDIR + '/wintab'
83 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
84
85 # enable freetype2 support for text objects
86 BF_FREETYPE = LIBDIR + '/gcc/freetype'
87 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
88 BF_FREETYPE_LIB = 'freetype'
89 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
90
91 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
92 BF_QUICKTIME = '/usr/local'
93 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
94
95 WITH_BF_ICONV = False
96 BF_ICONV = LIBDIR + "/iconv"
97 BF_ICONV_INC = '${BF_ICONV}/include'
98 BF_ICONV_LIB = 'iconv'
99 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
100
101 # Mesa Libs should go here if your using them as well....
102 WITH_BF_STATICOPENGL = False
103 BF_OPENGL = 'C:\\MingW'
104 BF_OPENGL_INC = '${BF_OPENGL}/include'
105 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
106 BF_OPENGL_LIB = 'opengl32 glu32'
107 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
108              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
109              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
110
111 CC = 'i586-mingw32msvc-gcc'
112 CXX = 'i586-mingw32msvc-g++'
113
114 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
115
116 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
117 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
118 REL_CFLAGS = [ '-O2' ]
119 REL_CCFLAGS = [ '-O2' ]
120 C_WARN = [ '-Wall' , '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
121
122 CC_WARN = [ '-Wall' ]
123
124
125 LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
126
127 BF_DEBUG = False
128 BF_DEBUG_CCFLAGS= []
129
130 BF_PROFILE = False
131 BF_PROFILE_CCFLAGS = ['-pg','-g']
132 BF_PROFILE_LINKFLAGS = ['-pg']
133
134 BF_BUILDDIR = '../build/linuxcross'
135 BF_INSTALLDIR='../install/linuxcross'
136 BF_DOCDIR='../install/doc'