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