merge from 22606 to 23153
[blender.git] / config / win64-vc-config.py
1 <<<<<<< .working
2 LCGDIR = '#../lib/win64'
3 LIBDIR = '${LCGDIR}'
4
5 # enable ffmpeg  support
6 WITH_BF_FFMPEG = False # -DWITH_FFMPEG
7 BF_FFMPEG = LIBDIR +'/ffmpeg'
8 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
9 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
10 BF_FFMPEG_LIB = 'avformat-52.lib avcodec-51.lib avdevice-52.lib avutil-49.lib swscale-0.lib'
11
12 BF_PYTHON = LIBDIR + '/python'
13 BF_PYTHON_VERSION = '3.1'
14 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
15 BF_PYTHON_BINARY = 'python'
16 BF_PYTHON_LIB = 'python31'
17 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
18
19 WITH_BF_OPENAL = False 
20 BF_OPENAL = LIBDIR + '/openal'
21 BF_OPENAL_INC = '${BF_OPENAL}/include '
22 BF_OPENAL_LIB = 'wrap_oal'
23 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
24
25 # TODO - are these useful on win32?
26 # BF_CXX = '/usr'
27 # WITH_BF_STATICCXX = False
28 # BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
29
30 WITH_BF_ICONV = True
31 BF_ICONV = LIBDIR + '/iconv'
32 BF_ICONV_INC = '${BF_ICONV}/include'
33 BF_ICONV_LIB = 'iconv'
34 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
35
36 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
37 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
38 BF_LIBSAMPLERATE_LIB = 'libsamplerate'
39 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/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'
76 BF_PNG_LIBPATH = '${BF_PNG}/lib'
77
78 BF_TIFF = LIBDIR + '/tiff'
79 BF_TIFF_INC = '${BF_TIFF}/include'
80 BF_TIFF_LIB = 'libtiff'
81 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
82
83 WITH_BF_ZLIB = True
84 BF_ZLIB = LIBDIR + '/zlib'
85 BF_ZLIB_INC = '${BF_ZLIB}/include'
86 BF_ZLIB_LIB = 'libz'
87 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
88
89 WITH_BF_INTERNATIONAL = False
90
91 BF_GETTEXT = LIBDIR + '/gettext'
92 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
93 BF_GETTEXT_LIB = 'gettext'
94 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
95
96 WITH_BF_GAMEENGINE = True
97 WITH_BF_PLAYER = False
98
99 WITH_BF_ODE = True
100 BF_ODE = LIBDIR + '/ode'
101 BF_ODE_INC = BF_ODE + '/include'
102 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
103
104 WITH_BF_BULLET = True
105 BF_BULLET = '#extern/bullet2/src'
106 BF_BULLET_INC = '${BF_BULLET}'
107 BF_BULLET_LIB = 'extern_bullet'
108
109 BF_SOLID = '#extern/solid'
110 BF_SOLID_INC = '${BF_SOLID}'
111 BF_SOLID_LIB = 'extern_solid'
112
113 BF_WINTAB = LIBDIR + '/wintab'
114 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
115
116 WITH_BF_BINRELOC = False
117
118 #WITH_BF_NSPR = True
119 #BF_NSPR = $(LIBDIR)/nspr
120 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
121 #BF_NSPR_LIB = 
122
123 # Uncomment the following line to use Mozilla inplace of netscape
124 #CPPFLAGS += -DMOZ_NOT_NET
125 # Location of MOZILLA/Netscape header files...
126 #BF_MOZILLA = $(LIBDIR)/mozilla
127 #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
128 #BF_MOZILLA_LIB =
129 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
130 # if this is not set.
131 #
132 # Be paranoid regarding library creation (do not update archives)
133 #BF_PARANOID = True
134
135 # enable freetype2 support for text objects
136 BF_WITH_FREETYPE = True
137 BF_FREETYPE = LIBDIR + '/freetype'
138 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
139 BF_FREETYPE_LIB = 'freetype2ST'
140 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
141
142 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
143 BF_QUICKTIME = LIBDIR + '/QTDevWin'
144 BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
145 BF_QUICKTIME_LIB = 'qtmlClient'
146 BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
147
148 WITH_BF_OPENJPEG = False
149 BF_OPENJPEG = '#extern/libopenjpeg'
150 BF_OPENJPEG_LIB = ''
151 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
152 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
153
154 WITH_BF_FFTW3 = True
155 BF_FFTW3 = LIBDIR + '/fftw3'
156 BF_FFTW3_INC = '${BF_FFTW3}/include'
157 BF_FFTW3_LIB = 'libfftw'
158 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
159
160 WITH_BF_REDCODE = False  
161 BF_REDCODE_INC = '#extern'
162
163 WITH_BF_STATICOPENGL = False
164 BF_OPENGL_INC = '${BF_OPENGL}/include'
165 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
166 BF_OPENGL_LIB = 'opengl32 glu32'
167 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
168                          '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
169                          '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
170 CC = 'cl.exe'
171 CXX = 'cl.exe'
172
173 CFLAGS = []
174 CCFLAGS = ['/nologo', '/Ob1', '/J', '/W3', '/Gd', '/wd4244', '/wd4305', '/wd4800', '/wd4065', '/wd4267']
175 CXXFLAGS = ['/EHsc']
176 BGE_CXXFLAGS = ['/O2', '/EHsc', '/GR', '/fp:fast', '/arch:SSE2']
177
178 BF_DEBUG_CCFLAGS = ['/Zi', '/FR${TARGET}.sbr']
179
180 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DFTGL_LIBRARY_STATIC', '-D_CRT_SECURE_NO_DEPRECATE']
181 REL_CFLAGS = ['-O2', '-DNDEBUG']
182 REL_CCFLAGS = ['-O2', '-DNDEBUG']
183 REL_CXXFLAGS = ['-O2', '-DNDEBUG']
184
185 C_WARN = []
186 CC_WARN = []
187 CXX_WARN = []
188
189 LLIBS = ['ws2_32', 'vfw32', 'winmm', 'kernel32', 'user32', 'gdi32', 'comdlg32', 'advapi32', 'shfolder', 'shell32', 'ole32', 'oleaut32', 'uuid']
190
191 WITH_BF_DOCS=False
192
193 BF_DEBUG=False
194 BF_BSC=False
195
196 BF_DEBUG_CCFLAGS = ['/Zi', '/FR${TARGET}.sbr']
197
198 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DFTGL_LIBRARY_STATIC', '-D_CRT_SECURE_NO_DEPRECATE']
199 REL_CFLAGS = ['-O2', '-DNDEBUG']
200 REL_CCFLAGS = ['-O2', '-DNDEBUG']
201 REL_CXXFLAGS = ['-O2', '-DNDEBUG']
202
203 C_WARN = []
204 CC_WARN = []
205 CXX_WARN = []
206
207 LLIBS = ['ws2_32', 'vfw32', 'winmm', 'kernel32', 'user32', 'gdi32', 'comdlg32', 'advapi32', 'shfolder', 'shell32', 'ole32', 'oleaut32', 'uuid']
208
209 WITH_BF_DOCS=False
210
211 BF_DEBUG=False
212 BF_BSC=False
213 CFLAGS = []
214 CCFLAGS = ['/nologo', '/Ob1', '/J', '/W3', '/Gd', '/MT']
215 CXXFLAGS = ['/EHsc']
216
217 if BF_DEBUG:
218         BF_NUMJOBS=1
219 else:
220         BF_NUMJOBS=6
221
222 PLATFORM_LINKFLAGS = ['/SUBSYSTEM:CONSOLE','/MACHINE:X64','/INCREMENTAL:NO','/NODEFAULTLIB:"msvcprt.lib"','/NODEFAULTLIB:"msvcprtd.lib"','/NODEFAULTLIB:"glut32.lib"','/NODEFAULTLIB:"libc.lib"','/NODEFAULTLIB:"libcd.lib"','/NODEFAULTLIB:"libcpd.lib"','/NODEFAULTLIB:"libcp.lib"','/NODEFAULTLIB:"msvcrt.lib"', '/NODEFAULTLIB:"msvcrtd.lib"', '/NODEFAULTLIB:"msvcmrt.lib"', '/NODEFAULTLIB:"msvcurt.lib"']
223
224 BF_BUILDDIR = '..\\build\\blender25-win64-vc'
225 BF_INSTALLDIR='..\\install\\blender25-win64-vc'
226 BF_DOCDIR='..\\install\\blender25-win64-vc\\doc'
227
228
229
230 ######################### MERGE WITH ABOVE ################################
231
232
233
234
235 >>>>>>> .merge-right.r21114