Filling in branch from trunk
[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'
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 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 IlmThread '
51 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_msvc'
52
53 WITH_BF_DDS = 'true'
54
55 WITH_BF_JPEG = 'true'
56 BF_JPEG = LIBDIR + '/jpeg'
57 BF_JPEG_INC = '${BF_JPEG}/include'
58 BF_JPEG_LIB = 'libjpeg'
59 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
60
61 WITH_BF_PNG = 'true'
62 BF_PNG = LIBDIR + '/png'
63 BF_PNG_INC = '${BF_PNG}/include'
64 BF_PNG_LIB = 'libpng_st'
65 BF_PNG_LIBPATH = '${BF_PNG}/lib'
66
67 BF_TIFF = LIBDIR + '/tiff'
68 BF_TIFF_INC = '${BF_TIFF}/include'
69
70 WITH_BF_ZLIB = 'true'
71 BF_ZLIB = LIBDIR + '/zlib'
72 BF_ZLIB_INC = '${BF_ZLIB}/include'
73 BF_ZLIB_LIB = 'libz'
74 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
75
76 WITH_BF_INTERNATIONAL = 'true'
77
78 BF_GETTEXT = LIBDIR + '/gettext'
79 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
80 BF_GETTEXT_LIB = 'gnu_gettext'
81 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
82
83 WITH_BF_FTGL = 'true'
84 BF_FTGL = LIBDIR + '/ftgl'
85 BF_FTGL_INC = '${BF_FTGL}/include'
86 BF_FTGL_LIB = 'extern_ftgl'
87
88 WITH_BF_GAMEENGINE = 'false'
89
90 WITH_BF_ODE = 'true'
91 BF_ODE = LIBDIR + '/ode'
92 BF_ODE_INC = BF_ODE + '/include'
93 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
94
95 WITH_BF_BULLET = 'true'
96 BF_BULLET = '#extern/bullet2/src'
97 BF_BULLET_INC = '${BF_BULLET}'
98 BF_BULLET_LIB = 'extern_bullet'
99
100 BF_SOLID = '#extern/solid'
101 BF_SOLID_INC = '${BF_SOLID}'
102 BF_SOLID_LIB = 'extern_solid'
103
104 BF_WINTAB = LIBDIR + '/wintab'
105 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
106
107 WITH_BF_YAFRAY = 'true'
108
109 #WITH_BF_NSPR = 'true'
110 #BF_NSPR = $(LIBDIR)/nspr
111 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
112 #BF_NSPR_LIB = 
113
114 # Uncomment the following line to use Mozilla inplace of netscape
115 #CPPFLAGS += -DMOZ_NOT_NET
116 # Location of MOZILLA/Netscape header files...
117 #BF_MOZILLA = $(LIBDIR)/mozilla
118 #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
119 #BF_MOZILLA_LIB =
120 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
121 # if this is not set.
122 #
123 # Be paranoid regarding library creation (do not update archives)
124 #BF_PARANOID = 'true'
125
126 # enable freetype2 support for text objects
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 = 'true' # -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_STATICOPENGL = 'false'
139 BF_OPENGL_INC = '${BF_OPENGL}/include'
140 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
141 BF_OPENGL_LIB = 'opengl32 glu32'
142 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
143                          '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
144                          '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
145 CC = 'cl.exe'
146 CXX = 'cl.exe'
147
148 CCFLAGS = ['/nologo', '/Og', '/Ot', '/Ob1', '/Op', '/G6','/EHsc', '/J', '/W3', '/Gd', '/MT']
149
150 BF_DEBUG_FLAGS = ['/Zi', '/FR${TARGET}.sbr']
151
152 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DUSE_OPENAL', '-DFTGL_LIBRARY_STATIC', '-D_CRT_SECURE_NO_DEPRECATE']
153 REL_CFLAGS = ['-O2', '-DNDEBUG']
154 REL_CCFLAGS = ['-O2', '-DNDEBUG']
155 C_WARN = []
156 CC_WARN = []
157
158 LLIBS = 'ws2_32 dxguid vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid'
159
160 PLATFORM_LINKFLAGS = '''
161                         /SUBSYSTEM:CONSOLE 
162                         /MACHINE:IX86 
163                         /ENTRY:mainCRTStartup 
164                         /INCREMENTAL:NO 
165                         /NODEFAULTLIB:"msvcprt.lib" 
166                         /NODEFAULTLIB:"glut32.lib" 
167                         /NODEFAULTLIB:"libc.lib"
168                         /NODEFAULTLIB:"libcd.lib"
169                         /NODEFAULTLIB:"libcpd.lib" 
170                         /NODEFAULTLIB:"libcp.lib" 
171                         /NODEFAULTLIB:"libcmtd.lib"
172                     '''
173                         
174 BF_BUILDDIR = '..\\build\\win32-vc'
175 BF_INSTALLDIR='..\\install\\win32-vc'