==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' #$(shell sdl-config --prefix)
23 BF_SDL_INC = '${BF_SDL}/include' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
24 BF_SDL_LIB = 'SDL.lib' #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
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 # Mesa Libs should go here if your using them as well....
115 WITH_BF_OPENGL = 'true'
116 #BF_OPENGL = 'C:\\MingW'
117 BF_OPENGL_INC = '${BF_OPENGL}/include'
118 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
119 BF_OPENGL_LIB = 'opengl32 glu32'
120 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
121              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
122              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
123 ##
124 ##CC = gcc
125 ##CCC = g++
126 ##ifeq ($CPU),alpha)
127 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
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 ##BF_DEPEND = 'true'
135 ##
136 ##AR = ar
137 ##ARFLAGS = ruv
138 ##ARFLAGSQUIET = ru
139 ##
140 C_WARN = []
141 #
142 CC_WARN = []
143
144 ##FIX_STUBS_WARNINGS = -Wno-unused
145
146 LLIBS = 'ws2_32 dxguid vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid'  #[ '-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
147
148 PLATFORM_LINKFLAGS = '''
149                         /SUBSYSTEM:CONSOLE 
150                         /MACHINE:IX86 
151                         /ENTRY:mainCRTStartup 
152                         /INCREMENTAL:NO 
153                         /NODEFAULTLIB:"msvcprt.lib" 
154                         /NODEFAULTLIB:"glut32.lib" 
155                         /NODEFAULTLIB:"libc.lib"
156                         /NODEFAULTLIB:"libcd.lib"
157                         /NODEFAULTLIB:"libcpd.lib" 
158                         /NODEFAULTLIB:"libcp.lib" 
159                         /NODEFAULTLIB:"libcmtd.lib"
160                     '''
161                         
162 ##LOPTS = --dynamic
163 ##DYNLDFLAGS = -shared $(LDFLAGS)
164
165 BF_BUILDDIR = '..\\build\\win32-vc'
166 BF_INSTALLDIR='..\\install\\win32-vc'