Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / config / win64-vc-config.py
1 LCGDIR = '#../lib/win64'
2 LIBDIR = '${LCGDIR}'
3
4 # enable ffmpeg  support
5 WITH_BF_FFMPEG = False # -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 = '3.1'
13 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
14 BF_PYTHON_BINARY = 'python'
15 BF_PYTHON_LIB = 'python31'
16 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
17
18 WITH_BF_OPENAL = False 
19 BF_OPENAL = LIBDIR + '/openal'
20 BF_OPENAL_INC = '${BF_OPENAL}/include '
21 BF_OPENAL_LIB = 'wrap_oal'
22 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
23
24 # TODO - are these useful on win32?
25 # BF_CXX = '/usr'
26 # WITH_BF_STATICCXX = False
27 # BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
28
29 WITH_BF_ICONV = True
30 BF_ICONV = LIBDIR + '/iconv'
31 BF_ICONV_INC = '${BF_ICONV}/include'
32 BF_ICONV_LIB = 'iconv'
33 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
34
35 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
36 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
37 BF_LIBSAMPLERATE_LIB = 'libsamplerate'
38 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
39
40 WITH_BF_SDL = True
41 BF_SDL = LIBDIR + '/sdl'
42 BF_SDL_INC = '${BF_SDL}/include'
43 BF_SDL_LIB = 'SDL.lib'
44 BF_SDL_LIBPATH = '${BF_SDL}/lib'
45
46 BF_PTHREADS = LIBDIR + '/pthreads'
47 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
48 BF_PTHREADS_LIB = 'pthreadVC2'
49 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
50
51 WITH_BF_FMOD = False
52 BF_FMOD = LIBDIR + '/fmod'
53
54 WITH_BF_OPENEXR = True
55 WITH_BF_STATICOPENEXR = False
56 BF_OPENEXR = LIBDIR + '/openexr'
57 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
58 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread '
59 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_vs2008'
60 # Warning, this static lib configuration is untested! users of this OS please confirm.
61 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'
62
63 WITH_BF_DDS = True
64
65 WITH_BF_JPEG = True
66 BF_JPEG = LIBDIR + '/jpeg'
67 BF_JPEG_INC = '${BF_JPEG}/include'
68 BF_JPEG_LIB = 'libjpeg'
69 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
70
71 WITH_BF_PNG = True
72 BF_PNG = LIBDIR + '/png'
73 BF_PNG_INC = '${BF_PNG}/include'
74 BF_PNG_LIB = 'libpng'
75 BF_PNG_LIBPATH = '${BF_PNG}/lib'
76
77 BF_TIFF = LIBDIR + '/tiff'
78 BF_TIFF_INC = '${BF_TIFF}/include'
79 BF_TIFF_LIB = 'libtiff'
80 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
81
82 WITH_BF_ZLIB = True
83 BF_ZLIB = LIBDIR + '/zlib'
84 BF_ZLIB_INC = '${BF_ZLIB}/include'
85 BF_ZLIB_LIB = 'libz'
86 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
87
88 WITH_BF_INTERNATIONAL = False
89
90 BF_GETTEXT = LIBDIR + '/gettext'
91 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
92 BF_GETTEXT_LIB = 'gettext'
93 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
94
95 WITH_BF_GAMEENGINE = True
96 WITH_BF_PLAYER = False
97
98 WITH_BF_BULLET = True
99 BF_BULLET = '#extern/bullet2/src'
100 BF_BULLET_INC = '${BF_BULLET}'
101 BF_BULLET_LIB = 'extern_bullet'
102
103 BF_WINTAB = LIBDIR + '/wintab'
104 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
105
106 WITH_BF_BINRELOC = False
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 # Be paranoid regarding library creation (do not update archives)
123 #BF_PARANOID = True
124
125 # enable freetype2 support for text objects
126 BF_WITH_FREETYPE = True
127 BF_FREETYPE = LIBDIR + '/freetype'
128 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
129 BF_FREETYPE_LIB = 'freetype2ST'
130 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
131
132 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
133 BF_QUICKTIME = LIBDIR + '/QTDevWin'
134 BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
135 BF_QUICKTIME_LIB = 'qtmlClient'
136 BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
137
138 WITH_BF_OPENJPEG = False
139 BF_OPENJPEG = '#extern/libopenjpeg'
140 BF_OPENJPEG_LIB = ''
141 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
142 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
143
144 WITH_BF_FFTW3 = True
145 BF_FFTW3 = LIBDIR + '/fftw3'
146 BF_FFTW3_INC = '${BF_FFTW3}/include'
147 BF_FFTW3_LIB = 'libfftw'
148 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
149
150 WITH_BF_REDCODE = False  
151 BF_REDCODE_INC = '#extern'
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 CFLAGS = []
164 CCFLAGS = ['/nologo', '/Ob1', '/J', '/W3', '/Gd', '/wd4244', '/wd4305', '/wd4800', '/wd4065', '/wd4267']
165 CXXFLAGS = ['/EHsc']
166
167 BF_DEBUG_CCFLAGS = ['/Zi', '/FR${TARGET}.sbr']
168
169 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DFTGL_LIBRARY_STATIC', '-D_CRT_SECURE_NO_DEPRECATE']
170 REL_CFLAGS = ['-O2', '-DNDEBUG']
171 REL_CCFLAGS = ['-O2', '-DNDEBUG']
172 REL_CXXFLAGS = ['-O2', '-DNDEBUG']
173
174 C_WARN = []
175 CC_WARN = []
176 CXX_WARN = []
177
178 LLIBS = ['ws2_32', 'vfw32', 'winmm', 'kernel32', 'user32', 'gdi32', 'comdlg32', 'advapi32', 'shfolder', 'shell32', 'ole32', 'oleaut32', 'uuid']
179
180 WITH_BF_DOCS=False
181
182 BF_DEBUG=False
183 BF_BSC=False
184
185 if BF_DEBUG:
186         BF_NUMJOBS=1
187 else:
188         BF_NUMJOBS=6
189
190 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"']
191
192 BF_BUILDDIR = '..\\build\\blender25-win64-vc'
193 BF_INSTALLDIR='..\\install\\blender25-win64-vc'
194 BF_DOCDIR='..\\install\\blender25-win64-vc\\doc'
195
196
197
198 ######################### MERGE WITH ABOVE ################################
199
200
201
202