soc-2008-mxcurioni: swig compiles as independent library
[blender.git] / config / win32-mingw-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = "${LCGDIR}"
3
4 WITH_BF_VERSE = 'false'
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 BF_PYTHON = LIBDIR + '/python'
8 BF_PYTHON_VERSION = '2.5'
9 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
10 BF_PYTHON_BINARY = 'python'
11 BF_PYTHON_LIB = 'python25'
12 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
13
14 WITH_BF_OPENAL = 'true'
15 BF_OPENAL = LIBDIR + '/openal'
16 BF_OPENAL_INC = '${BF_OPENAL}/include'
17 BF_OPENAL_LIB = 'dxguid openal_static'
18 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
19
20 WITH_BF_FFMPEG = 'false'
21 BF_FFMPEG_LIB = 'avformat swscale avcodec avutil xvidcore x264'
22 BF_FFMPEG_LIBPATH = LIBDIR + '/gcc/ffmpeg/lib'
23 BF_FFMPEG_INC =  LIBDIR + '/gcc/ffmpeg/include'
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 BF_OPENEXR = LIBDIR + '/gcc/openexr'
41 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
42 BF_OPENEXR_LIB = ' Half IlmImf Iex '
43 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
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_LIBPATH = '${BF_ZLIB}/lib'
66
67 WITH_BF_INTERNATIONAL = 'true'
68
69 BF_GETTEXT = LIBDIR + '/gettext'
70 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
71 BF_GETTEXT_LIB = 'gnu_gettext'
72 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
73
74 WITH_BF_FTGL = 'true'
75 BF_FTGL = LIBDIR + '/ftgl'
76 BF_FTGL_INC = '${BF_FTGL}/include'
77 BF_FTGL_LIB = 'extern_ftgl'
78
79 WITH_BF_GAMEENGINE = 'false'
80
81 WITH_BF_ODE = 'true'
82 BF_ODE = LIBDIR + '/ode'
83 BF_ODE_INC = BF_ODE + '/include'
84 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
85
86 WITH_BF_BULLET = 'true'
87 BF_BULLET = '#extern/bullet2/src'
88 BF_BULLET_INC = '${BF_BULLET}'
89 BF_BULLET_LIB = 'extern_bullet'
90
91 BF_SOLID = '#extern/solid'
92 BF_SOLID_INC = '${BF_SOLID}'
93 BF_SOLID_LIB = 'extern_solid'
94
95 BF_WINTAB = LIBDIR + '/wintab'
96 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
97
98 WITH_BF_YAFRAY = 'true'
99
100 WITH_BF_FREESTYLE = 'true'
101 BF_FREESTYLE = '#extern/freestyle'
102 BF_FREESTYLE_SRC = '#source/blender/freestyle/src'
103 BF_SWIG = '${BF_FREESTYLE}/swig'
104 BF_SWIG_LIB = 'extern_swig'
105 BF_LIB3DS = '${BF_FREESTYLE}/lib3ds'
106 BF_LIB3DS_LIB = 'extern_lib3ds'
107 BF_LIB3DS_LIBPATH = '${BF_LIB3DS}/lib3ds/.libs'
108 BF_LIB3DS_INC = '${BF_LIB3DS}/lib3ds'
109
110 #WITH_BF_NSPR = 'true'
111 #BF_NSPR = $(LIBDIR)/nspr
112 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
113 #BF_NSPR_LIB = 
114
115 # Uncomment the following line to use Mozilla inplace of netscape
116 #CPPFLAGS += -DMOZ_NOT_NET
117 # Location of MOZILLA/Netscape header files...
118 #BF_MOZILLA = $(LIBDIR)/mozilla
119 #BF_MOZILLA_INC = -I$(BF_MOZILLA)/include/mozilla/nspr -I$(BF_MOZILLA)/include/mozilla -I$(BF_MOZILLA)/include/mozilla/xpcom -I$(BF_MOZILLA)/include/mozilla/idl
120 #BF_MOZILLA_LIB =
121 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
122 # if this is not set.
123
124 # enable freetype2 support for text objects
125 BF_FREETYPE = LIBDIR + '/gcc/freetype'
126 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
127 BF_FREETYPE_LIB = 'freetype'
128 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
129
130 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
131 BF_QUICKTIME = '/usr/local'
132 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
133
134 WITH_BF_ICONV = 'false'
135 BF_ICONV = LIBDIR + "/iconv"
136 BF_ICONV_INC = '${BF_ICONV}/include'
137 BF_ICONV_LIB = 'iconv'
138 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
139
140 # Mesa Libs should go here if your using them as well....
141 WITH_BF_STATICOPENGL = 'false'
142 BF_OPENGL = 'C:\\MingW'
143 BF_OPENGL_INC = '${BF_OPENGL}/include'
144 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
145 BF_OPENGL_LIB = 'opengl32 glu32'
146 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
147              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
148              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
149 ##
150 CC = 'gcc'
151 CXX = 'g++'
152
153 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
154
155 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
156 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
157 REL_CFLAGS = [ '-O2' ]
158 REL_CCFLAGS = [ '-O2' ]
159
160 C_WARN = [ '-Wall' , '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
161
162 CC_WARN = [ '-Wall' ]
163
164 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++']
165
166 BF_DEBUG = 'false'
167 BF_DEBUG_FLAGS= '-g'
168
169 BF_PROFILE_FLAGS = ['-pg','-g']
170 BF_PROFILE = 'false'
171
172 BF_BUILDDIR = '..\\build\\win32-mingw'
173 BF_INSTALLDIR='..\\install\\win32-mingw'