c50f41b6d4be74bde88d62aa704bff58b26e0a21
[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 ${BF_FFMPEG}/include/msvc'
8 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
9 BF_FFMPEG_LIB = 'avformat-52.lib avcodec-52.lib avdevice-52.lib avutil-50.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 = True
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 WITH_BF_ICONV = True
25 BF_ICONV = LIBDIR + '/iconv'
26 BF_ICONV_INC = '${BF_ICONV}/include'
27 BF_ICONV_LIB = 'iconv'
28 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
29
30 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
31 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
32 BF_LIBSAMPLERATE_LIB = 'libsamplerate'
33 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
34
35 WITH_BF_JACK = False
36 BF_JACK = LIBDIR + '/jack'
37 BF_JACK_INC = '${BF_JACK}/include'
38 BF_JACK_LIB = 'libjack'
39 BF_JACK_LIBPATH = '${BF_JACK}/lib'
40
41 WITH_BF_SNDFILE = False
42 BF_SNDFILE = LIBDIR + '/sndfile'
43 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
44 BF_SNDFILE_LIB = 'libsndfile-1'
45 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
46
47 WITH_BF_SDL = True
48 BF_SDL = LIBDIR + '/sdl'
49 BF_SDL_INC = '${BF_SDL}/include'
50 BF_SDL_LIB = 'SDL.lib'
51 BF_SDL_LIBPATH = '${BF_SDL}/lib'
52
53 BF_PTHREADS = LIBDIR + '/pthreads'
54 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
55 BF_PTHREADS_LIB = 'pthreadVC2'
56 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
57
58 WITH_BF_OPENEXR = True
59 WITH_BF_STATICOPENEXR = False
60 BF_OPENEXR = LIBDIR + '/openexr'
61 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
62 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread '
63 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_vs2008'
64 # Warning, this static lib configuration is untested! users of this OS please confirm.
65 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'
66
67 WITH_BF_DDS = True
68
69 WITH_BF_JPEG = True
70 BF_JPEG = LIBDIR + '/jpeg'
71 BF_JPEG_INC = '${BF_JPEG}/include'
72 BF_JPEG_LIB = 'libjpeg'
73 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
74
75 WITH_BF_PNG = True
76 BF_PNG = LIBDIR + '/png'
77 BF_PNG_INC = '${BF_PNG}/include'
78 BF_PNG_LIB = 'libpng_st'
79 BF_PNG_LIBPATH = '${BF_PNG}/lib'
80
81 BF_TIFF = LIBDIR + '/tiff'
82 BF_TIFF_INC = '${BF_TIFF}/include'
83 BF_TIFF_LIB = 'libtiff'
84 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
85
86 WITH_BF_ZLIB = True
87 BF_ZLIB = LIBDIR + '/zlib'
88 BF_ZLIB_INC = '${BF_ZLIB}/include'
89 BF_ZLIB_LIB = 'libz'
90 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
91
92 WITH_BF_INTERNATIONAL = True
93
94 BF_GETTEXT = LIBDIR + '/gettext'
95 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
96 BF_GETTEXT_LIB = 'gnu_gettext'
97 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
98
99 WITH_BF_GAMEENGINE = True
100 WITH_BF_PLAYER = False
101
102 WITH_BF_BULLET = True
103 BF_BULLET = '#extern/bullet2/src'
104 BF_BULLET_INC = '${BF_BULLET}'
105 BF_BULLET_LIB = 'extern_bullet'
106
107 BF_WINTAB = LIBDIR + '/wintab'
108 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
109
110 WITH_BF_BINRELOC = False
111
112 # enable freetype2 support for text objects
113 BF_WITH_FREETYPE = True
114 BF_FREETYPE = LIBDIR + '/freetype'
115 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
116 BF_FREETYPE_LIB = 'freetype2ST'
117 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
118
119 WITH_BF_QUICKTIME = True # -DWITH_QUICKTIME
120 BF_QUICKTIME = LIBDIR + '/QTDevWin'
121 BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
122 BF_QUICKTIME_LIB = 'qtmlClient'
123 BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
124
125 WITH_BF_OPENJPEG = True 
126 BF_OPENJPEG = '#extern/libopenjpeg'
127 BF_OPENJPEG_LIB = ''
128 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
129 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
130
131 WITH_BF_FFTW3 = False
132 BF_FFTW3 = LIBDIR + '/fftw3'
133 BF_FFTW3_INC = '${BF_FFTW3}/include'
134 BF_FFTW3_LIB = 'libfftw'
135 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
136
137 WITH_BF_REDCODE = False  
138 BF_REDCODE_INC = '#extern'
139
140 WITH_BF_STATICOPENGL = False
141 BF_OPENGL_INC = '${BF_OPENGL}/include'
142 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
143 BF_OPENGL_LIB = 'opengl32 glu32'
144 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
145                          '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
146                          '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
147 CC = 'cl.exe'
148 CXX = 'cl.exe'
149
150 CCFLAGS = ['/nologo', '/Ob1', '/J', '/W3', '/Gd', '/wd4244', '/wd4305', '/wd4800', '/wd4065', '/wd4267']
151 CXXFLAGS = ['/EHsc']
152
153 BF_DEBUG_CCFLAGS = ['/Zi', '/FR${TARGET}.sbr']
154
155 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DFTGL_LIBRARY_STATIC', '-D_CRT_SECURE_NO_DEPRECATE']
156 REL_CFLAGS = ['-O2', '-DNDEBUG']
157 REL_CCFLAGS = ['-O2', '-DNDEBUG']
158 REL_CXXFLAGS = ['-O2', '-DNDEBUG']
159
160 C_WARN = []
161 CC_WARN = []
162 CXX_WARN = []
163
164 LLIBS = ['ws2_32', 'vfw32', 'winmm', 'kernel32', 'user32', 'gdi32', 'comdlg32', 'advapi32', 'shfolder', 'shell32', 'ole32', 'oleaut32', 'uuid']
165
166 PLATFORM_LINKFLAGS = ['/SUBSYSTEM:CONSOLE','/MACHINE:IX86','/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"', '/LARGEADDRESSAWARE']
167
168 # # Todo
169 # BF_PROFILE_CCFLAGS = ['-pg', '-g ']
170 # BF_PROFILE_LINKFLAGS = ['-pg']
171 # BF_PROFILE = False
172
173 BF_BUILDDIR = '..\\build\\win32-vc'
174 BF_INSTALLDIR='..\\install\\win32-vc'
175 BF_DOCDIR='..\\install\\doc'