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