svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r17236:HEAD
[blender.git] / config / win32-vc-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = '${LCGDIR}'
3
4 WITH_BF_VERSE = False
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 # enable ffmpeg  support
8 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
9 BF_FFMPEG = LIBDIR +'/ffmpeg'
10 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
11 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
12 BF_FFMPEG_LIB = 'avformat-52.lib avcodec-51.lib avdevice-52.lib avutil-49.lib swscale-0.lib'
13
14 BF_PYTHON = LIBDIR + '/python'
15 BF_PYTHON_VERSION = '2.5'
16 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
17 BF_PYTHON_BINARY = 'python'
18 BF_PYTHON_LIB = 'python25'
19 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
20
21 WITH_BF_OPENAL = True
22 WITH_BF_STATICOPENAL = False
23 BF_OPENAL = LIBDIR + '/openal'
24 BF_OPENAL_INC = '${BF_OPENAL}/include ${BF_OPENAL}/include/AL '
25 BF_OPENAL_LIB = 'dxguid openal_static'
26 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
27 # Warning, this static lib configuration is untested! users of this OS please confirm.
28 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
29
30 # TODO - are these useful on win32?
31 # BF_CXX = '/usr'
32 # WITH_BF_STATICCXX = False
33 # BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
34
35 WITH_BF_ICONV = True
36 BF_ICONV = LIBDIR + '/iconv'
37 BF_ICONV_INC = '${BF_ICONV}/include'
38 BF_ICONV_LIB = 'iconv'
39 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
40
41 WITH_BF_SDL = True
42 BF_SDL = LIBDIR + '/sdl'
43 BF_SDL_INC = '${BF_SDL}/include'
44 BF_SDL_LIB = 'SDL.lib'
45 BF_SDL_LIBPATH = '${BF_SDL}/lib'
46
47 BF_PTHREADS = LIBDIR + '/pthreads'
48 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
49 BF_PTHREADS_LIB = 'pthreadVC2'
50 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
51
52 WITH_BF_FMOD = False
53 BF_FMOD = LIBDIR + '/fmod'
54
55 WITH_BF_OPENEXR = True
56 WITH_BF_STATICOPENEXR = False
57 BF_OPENEXR = LIBDIR + '/openexr'
58 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
59 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread '
60 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_vs2008'
61 # Warning, this static lib configuration is untested! users of this OS please confirm.
62 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'
63
64 WITH_BF_DDS = True
65
66 WITH_BF_JPEG = True
67 BF_JPEG = LIBDIR + '/jpeg'
68 BF_JPEG_INC = '${BF_JPEG}/include'
69 BF_JPEG_LIB = 'libjpeg'
70 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
71
72 WITH_BF_PNG = True
73 BF_PNG = LIBDIR + '/png'
74 BF_PNG_INC = '${BF_PNG}/include'
75 BF_PNG_LIB = 'libpng_st'
76 BF_PNG_LIBPATH = '${BF_PNG}/lib'
77
78 BF_TIFF = LIBDIR + '/tiff'
79 BF_TIFF_INC = '${BF_TIFF}/include'
80
81 WITH_BF_ZLIB = True
82 BF_ZLIB = LIBDIR + '/zlib'
83 BF_ZLIB_INC = '${BF_ZLIB}/include'
84 BF_ZLIB_LIB = 'libz'
85 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
86
87 WITH_BF_INTERNATIONAL = True
88
89 BF_GETTEXT = LIBDIR + '/gettext'
90 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
91 BF_GETTEXT_LIB = 'gnu_gettext'
92 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
93
94 WITH_BF_FTGL = True
95 BF_FTGL = LIBDIR + '/ftgl'
96 BF_FTGL_INC = '${BF_FTGL}/include'
97 BF_FTGL_LIB = 'extern_ftgl'
98
99 WITH_BF_GAMEENGINE = True
100 WITH_BF_PLAYER = True
101
102 WITH_BF_ODE = True
103 BF_ODE = LIBDIR + '/ode'
104 BF_ODE_INC = BF_ODE + '/include'
105 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
106
107 WITH_BF_BULLET = True
108 BF_BULLET = '#extern/bullet2/src'
109 BF_BULLET_INC = '${BF_BULLET}'
110 BF_BULLET_LIB = 'extern_bullet'
111
112 BF_SOLID = '#extern/solid'
113 BF_SOLID_INC = '${BF_SOLID}'
114 BF_SOLID_LIB = 'extern_solid'
115
116 BF_WINTAB = LIBDIR + '/wintab'
117 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
118
119 WITH_BF_YAFRAY = True
120
121 WITH_BF_BINRELOC = False
122
123 #WITH_BF_NSPR = True
124 #BF_NSPR = $(LIBDIR)/nspr
125 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
126 #BF_NSPR_LIB = 
127
128 # Uncomment the following line to use Mozilla inplace of netscape
129 #CPPFLAGS += -DMOZ_NOT_NET
130 # Location of MOZILLA/Netscape header files...
131 #BF_MOZILLA = $(LIBDIR)/mozilla
132 #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
133 #BF_MOZILLA_LIB =
134 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
135 # if this is not set.
136 #
137 # Be paranoid regarding library creation (do not update archives)
138 #BF_PARANOID = True
139
140 # enable freetype2 support for text objects
141 BF_WITH_FREETYPE = True
142 BF_FREETYPE = LIBDIR + '/freetype'
143 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
144 BF_FREETYPE_LIB = 'freetype2ST'
145 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
146
147 WITH_BF_QUICKTIME = True # -DWITH_QUICKTIME
148 BF_QUICKTIME = LIBDIR + '/QTDevWin'
149 BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
150 BF_QUICKTIME_LIB = 'qtmlClient'
151 BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
152
153 WITH_BF_STATICOPENGL = False
154 BF_OPENGL_INC = '${BF_OPENGL}/include'
155 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
156 BF_OPENGL_LIB = 'opengl32 glu32'
157 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
158                          '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
159                          '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
160 CC = 'cl.exe'
161 CXX = 'cl.exe'
162
163 CCFLAGS = ['/nologo', '/Ob1', '/J', '/W3', '/Gd', '/MT']
164 CXXFLAGS = ['/EHsc']
165
166 BF_DEBUG_CCFLAGS = ['/Zi', '/FR${TARGET}.sbr']
167
168 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DFTGL_LIBRARY_STATIC', '-D_CRT_SECURE_NO_DEPRECATE']
169 REL_CFLAGS = ['-O2', '-DNDEBUG']
170 REL_CCFLAGS = ['-O2', '-DNDEBUG']
171 REL_CXXFLAGS = ['-O2', '-DNDEBUG']
172
173 C_WARN = []
174 CC_WARN = []
175 CXX_WARN = []
176
177 LLIBS = 'ws2_32 vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shfolder shell32 ole32 oleaut32 uuid'
178
179 PLATFORM_LINKFLAGS = '''
180                        /SUBSYSTEM:CONSOLE
181                        /MACHINE:IX86
182                        /ENTRY:mainCRTStartup
183                        /INCREMENTAL:NO
184                        /NODEFAULTLIB:"msvcprt.lib"
185                        /NODEFAULTLIB:"glut32.lib"
186                        /NODEFAULTLIB:"libc.lib"
187                        /NODEFAULTLIB:"libcd.lib"
188                        /NODEFAULTLIB:"libcpd.lib"
189                        /NODEFAULTLIB:"libcp.lib"
190                        /LARGEADDRESSAWARE
191                    '''
192
193 BF_BUILDDIR = '..\\build\\win32-vc'
194 BF_INSTALLDIR='..\\install\\win32-vc'
195 BF_DOCDIR='..\\install\\doc'