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