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