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