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