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