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