Camera tracking integration
[blender.git] / build_files / scons / 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-0.8'
7 BF_FFMPEG_INC = '${BF_FFMPEG}/include ${BF_FFMPEG}/include/msvc'
8 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
9 BF_FFMPEG_LIB = 'avformat-53.lib avcodec-53.lib avdevice-53.lib avutil-51.lib swscale-2.lib'
10 BF_FFMPEG_DLL = '${BF_FFMPEG_LIBPATH}/avformat-53.dll ${BF_FFMPEG_LIBPATH}/avcodec-53.dll ${BF_FFMPEG_LIBPATH}/avdevice-53.dll ${BF_FFMPEG_LIBPATH}/avutil-51.dll ${BF_FFMPEG_LIBPATH}/swscale-2.dll'
11
12 BF_PYTHON = LIBDIR + '/python'
13 BF_PYTHON_VERSION = '3.2'
14 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
15 BF_PYTHON_BINARY = 'python'
16 BF_PYTHON_LIB = 'python32'
17 BF_PYTHON_DLL = '${BF_PYTHON_LIB}'
18 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
19
20 WITH_BF_OPENAL = True
21 BF_OPENAL = LIBDIR + '/openal'
22 BF_OPENAL_INC = '${BF_OPENAL}/include '
23 BF_OPENAL_LIB = 'wrap_oal'
24 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
25
26 WITH_BF_ICONV = True
27 BF_ICONV = LIBDIR + '/iconv'
28 BF_ICONV_INC = '${BF_ICONV}/include'
29 BF_ICONV_LIB = 'iconv'
30 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
31
32 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
33 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
34 BF_LIBSAMPLERATE_LIB = 'libsamplerate'
35 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
36
37 WITH_BF_JACK = False
38 BF_JACK = LIBDIR + '/jack'
39 BF_JACK_INC = '${BF_JACK}/include ${BF_FFMPEG}/include/msvc'
40 BF_JACK_LIB = 'libjack'
41 BF_JACK_LIBPATH = '${BF_JACK}/lib'
42
43 WITH_BF_SNDFILE = False
44 BF_SNDFILE = LIBDIR + '/sndfile'
45 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
46 BF_SNDFILE_LIB = 'libsndfile-1'
47 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
48
49 WITH_BF_SDL = True
50 BF_SDL = LIBDIR + '/sdl'
51 BF_SDL_INC = '${BF_SDL}/include'
52 BF_SDL_LIB = 'SDL.lib'
53 BF_SDL_LIBPATH = '${BF_SDL}/lib'
54
55 BF_PTHREADS = LIBDIR + '/pthreads'
56 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
57 BF_PTHREADS_LIB = 'pthreadVC2'
58 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
59
60 WITH_BF_OPENEXR = True
61 WITH_BF_STATICOPENEXR = False
62 BF_OPENEXR = LIBDIR + '/openexr'
63 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
64 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread '
65 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_vs2008'
66 # Warning, this static lib configuration is untested! users of this OS please confirm.
67 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'
68
69 WITH_BF_DDS = True
70
71 WITH_BF_JPEG = True
72 BF_JPEG = LIBDIR + '/jpeg'
73 BF_JPEG_INC = '${BF_JPEG}/include'
74 BF_JPEG_LIB = 'libjpeg'
75 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
76
77 WITH_BF_PNG = True
78 BF_PNG = LIBDIR + '/png'
79 BF_PNG_INC = '${BF_PNG}/include'
80 BF_PNG_LIB = 'libpng_st'
81 BF_PNG_LIBPATH = '${BF_PNG}/lib'
82
83 WITH_BF_TIFF = True
84 BF_TIFF = LIBDIR + '/tiff'
85 BF_TIFF_INC = '${BF_TIFF}/include'
86 BF_TIFF_LIB = 'libtiff'
87 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
88
89 WITH_BF_ZLIB = True
90 BF_ZLIB = LIBDIR + '/zlib'
91 BF_ZLIB_INC = '${BF_ZLIB}/include'
92 BF_ZLIB_LIB = 'libz'
93 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
94
95 WITH_BF_INTERNATIONAL = True
96
97 BF_GETTEXT = LIBDIR + '/gettext'
98 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
99 BF_GETTEXT_LIB = 'gnu_gettext'
100 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
101
102 WITH_BF_GAMEENGINE = True
103 WITH_BF_PLAYER = True
104
105 WITH_BF_BULLET = True
106 BF_BULLET = '#extern/bullet2/src'
107 BF_BULLET_INC = '${BF_BULLET}'
108 BF_BULLET_LIB = 'extern_bullet'
109
110 BF_WINTAB = LIBDIR + '/wintab'
111 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
112
113 WITH_BF_BINRELOC = False
114
115 # enable freetype2 support for text objects
116 BF_WITH_FREETYPE = True
117 BF_FREETYPE = LIBDIR + '/freetype'
118 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
119 BF_FREETYPE_LIB = 'freetype2ST'
120 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
121
122 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
123 BF_QUICKTIME = LIBDIR + '/QTDevWin'
124 BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
125 BF_QUICKTIME_LIB = 'qtmlClient'
126 BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
127
128 WITH_BF_OPENJPEG = True 
129 BF_OPENJPEG = '#extern/libopenjpeg'
130 BF_OPENJPEG_LIB = ''
131 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
132 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
133
134 WITH_BF_FFTW3 = True
135 BF_FFTW3 = LIBDIR + '/fftw3'
136 BF_FFTW3_INC = '${BF_FFTW3}/include'
137 BF_FFTW3_LIB = 'libfftw'
138 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
139
140 WITH_BF_REDCODE = False  
141 BF_REDCODE_INC = '#extern'
142
143 WITH_BF_COLLADA = True
144 BF_COLLADA = '#source/blender/collada'
145 BF_COLLADA_INC = '${BF_COLLADA}'
146 BF_COLLADA_LIB = 'bf_collada'
147
148 BF_OPENCOLLADA = LIBDIR + '/opencollada'
149 BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
150 BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser MathMLSolver xml2 pcre buffer ftoa UTF'
151 BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib'
152
153 WITH_BF_3DMOUSE = True
154
155 #Ray trace optimization
156 WITH_BF_RAYOPTIMIZATION = True
157 BF_RAYOPTIMIZATION_SSE_FLAGS = ['/arch:SSE']
158
159 WITH_BF_STATICOPENGL = False
160 BF_OPENGL_INC = '${BF_OPENGL}/include'
161 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
162 BF_OPENGL_LIB = 'opengl32 glu32'
163 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
164                          '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
165                          '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
166                          
167 CC = 'cl.exe'
168 CXX = 'cl.exe'
169
170 CCFLAGS = ['/nologo', '/Ob1', '/J', '/W0', '/Gd', '/wd4018', '/wd4244', '/wd4305', '/wd4800', '/wd4065', '/wd4267', '/we4013']
171 CXXFLAGS = ['/EHsc']
172 BGE_CXXFLAGS = ['/O2', '/EHsc', '/GR', '/fp:fast', '/arch:SSE']
173
174 BF_DEBUG_CCFLAGS = ['/Zi', '/FR${TARGET}.sbr']
175
176 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-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','/STACK:2097152','/INCREMENTAL:NO', '/LARGEADDRESSAWARE', '/NODEFAULTLIB:msvcrt.lib', '/NODEFAULTLIB:msvcmrt.lib', '/NODEFAULTLIB:msvcurt.lib', '/NODEFAULTLIB:msvcrtd.lib']
188
189 # # Todo
190 # BF_PROFILE_CCFLAGS = ['-pg', '-g ']
191 # BF_PROFILE_LINKFLAGS = ['-pg']
192 # BF_PROFILE = False
193
194 BF_BSC=False
195
196 BF_BUILDDIR = '..\\build\\win32-vc'
197 BF_INSTALLDIR='..\\install\\win32-vc'