* add space_file sconscript reference too.
[blender-staging.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/lib25_vs2005'
13
14 WITH_BF_OPENAL = True
15 WITH_BF_STATICOPENAL = False
16 BF_OPENAL = LIBDIR + '/openal'
17 BF_OPENAL_INC = '${BF_OPENAL}/include'
18 BF_OPENAL_LIB = 'dxguid openal_static'
19 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
20 # Warning, this static lib configuration is untested! users of this OS please confirm.
21 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
22
23 WITH_BF_FFMPEG = False
24 BF_FFMPEG_LIB = 'avformat swscale avcodec avutil xvidcore x264'
25 BF_FFMPEG_LIBPATH = LIBDIR + '/gcc/ffmpeg/lib'
26 BF_FFMPEG_INC =  LIBDIR + '/gcc/ffmpeg/include'
27
28 WITH_BF_SDL = True
29 BF_SDL = LIBDIR + '/sdl'
30 BF_SDL_INC = '${BF_SDL}/include'
31 BF_SDL_LIB = 'SDL'
32 BF_SDL_LIBPATH = '${BF_SDL}/lib'
33
34 BF_PTHREADS = LIBDIR + '/pthreads'
35 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
36 BF_PTHREADS_LIB = 'pthreadGC2'
37 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
38
39 WITH_BF_FMOD = False
40 BF_FMOD = LIBDIR + '/fmod'
41
42 WITH_BF_OPENEXR = True
43 WITH_BF_STATICOPENEXR = False
44 BF_OPENEXR = LIBDIR + '/gcc/openexr'
45 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
46 BF_OPENEXR_LIB = ' Half IlmImf Iex '
47 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
48 # Warning, this static lib configuration is untested! users of this OS please confirm.
49 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'
50
51 WITH_BF_DDS = True
52
53 WITH_BF_JPEG = True
54 BF_JPEG = LIBDIR + '/jpeg'
55 BF_JPEG_INC = '${BF_JPEG}/include'
56 BF_JPEG_LIB = 'jpeg'
57 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
58
59 WITH_BF_PNG = True
60 BF_PNG = LIBDIR + '/png'
61 BF_PNG_INC = '${BF_PNG}/include'
62 BF_PNG_LIB = 'png'
63 BF_PNG_LIBPATH = '${BF_PNG}/lib'
64
65 BF_TIFF = LIBDIR + '/tiff'
66 BF_TIFF_INC = '${BF_TIFF}/include'
67 BF_TIFF_LIB = 'libtiff'
68 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
69
70 WITH_BF_ZLIB = True
71 BF_ZLIB = LIBDIR + '/zlib'
72 BF_ZLIB_INC = '${BF_ZLIB}/include'
73 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
74
75 WITH_BF_INTERNATIONAL = True
76
77 BF_GETTEXT = LIBDIR + '/gettext'
78 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
79 BF_GETTEXT_LIB = 'gnu_gettext'
80 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
81
82 WITH_BF_FTGL = True
83 BF_FTGL = LIBDIR + '/ftgl'
84 BF_FTGL_INC = '${BF_FTGL}/include'
85 BF_FTGL_LIB = 'extern_ftgl'
86
87 WITH_BF_GAMEENGINE = False
88
89 WITH_BF_ODE = True
90 BF_ODE = LIBDIR + '/ode'
91 BF_ODE_INC = BF_ODE + '/include'
92 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
93
94 WITH_BF_BULLET = True
95 BF_BULLET = '#extern/bullet2/src'
96 BF_BULLET_INC = '${BF_BULLET}'
97 BF_BULLET_LIB = 'extern_bullet'
98
99 BF_SOLID = '#extern/solid'
100 BF_SOLID_INC = '${BF_SOLID}'
101 BF_SOLID_LIB = 'extern_solid'
102
103 BF_WINTAB = LIBDIR + '/wintab'
104 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
105
106 WITH_BF_YAFRAY = True
107
108 #WITH_BF_NSPR = True
109 #BF_NSPR = $(LIBDIR)/nspr
110 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
111 #BF_NSPR_LIB = 
112
113 # Uncomment the following line to use Mozilla inplace of netscape
114 #CPPFLAGS += -DMOZ_NOT_NET
115 # Location of MOZILLA/Netscape header files...
116 #BF_MOZILLA = $(LIBDIR)/mozilla
117 #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
118 #BF_MOZILLA_LIB =
119 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
120 # if this is not set.
121
122 # enable freetype2 support for text objects
123 BF_FREETYPE = LIBDIR + '/gcc/freetype'
124 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
125 BF_FREETYPE_LIB = 'freetype'
126 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
127
128 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
129 BF_QUICKTIME = '/usr/local'
130 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
131
132 WITH_BF_ICONV = False
133 BF_ICONV = LIBDIR + "/iconv"
134 BF_ICONV_INC = '${BF_ICONV}/include'
135 BF_ICONV_LIB = 'iconv'
136 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
137
138 # Mesa Libs should go here if your using them as well....
139 WITH_BF_STATICOPENGL = False
140 BF_OPENGL = 'C:\\MingW'
141 BF_OPENGL_INC = '${BF_OPENGL}/include'
142 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
143 BF_OPENGL_LIB = 'opengl32 glu32'
144 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
145              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
146              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
147 ##
148 CC = 'gcc'
149 CXX = 'g++'
150
151 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
152
153 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
154 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
155 REL_CFLAGS = [ '-O2' ]
156 REL_CCFLAGS = [ '-O2' ]
157
158 C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
159
160 CC_WARN = [ '-Wall' ]
161
162 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++']
163
164 BF_DEBUG = False
165 BF_DEBUG_CCFLAGS= ['-g']
166
167 BF_PROFILE_CCFLAGS = ['-pg','-g']
168 BF_PROFILE_FLAGS = BF_PROFILE_CCFLAGS
169 BF_PROFILE = False
170
171 BF_BUILDDIR = '..\\build\\win32-mingw'
172 BF_INSTALLDIR='..\\install\\win32-mingw'
173 BF_DOCDIR = '..\\install\\doc'