* reflect WITH_BF_INTERNATIONAL changes into (platform)-config.py files too
[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 WITH_BF_TIFF = 'true'
49 BF_TIFF = LCGDIR + '/tiff'
50 BF_TIFF_INC = '${BF_TIFF}/include'
51 BF_TIFF_LIB = 'libtiff'
52 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
53
54 WITH_BF_ZLIB = 'true'
55 BF_ZLIB = LCGDIR + '/zlib'
56 BF_ZLIB_INC = '${BF_ZLIB}/include'
57 BF_ZLIB_LIB = 'libz'
58 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
59
60 WITH_BF_INTERNATIONAL = 'true'
61
62 BF_GETTEXT = LCGDIR + '/gettext'
63 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
64 BF_GETTEXT_LIB = 'gnu_gettext'
65 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
66
67 WITH_BF_FTGL = 'true'
68 BF_FTGL = LCGDIR + '/ftgl'
69 BF_FTGL_INC = '${BF_FTGL}/include'
70 BF_FTGL_LIB = 'extern_ftgl'
71
72 WITH_BF_GAMEENGINE = 'true'
73
74 WITH_BF_ODE = 'true'
75 BF_ODE = LCGDIR + '/ode'
76 BF_ODE_INC = BF_ODE + '/include'
77 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
78
79 WITH_BF_BULLET = 'true'
80 BF_BULLET = '#extern/bullet'
81 BF_BULLET_INC = '${BF_BULLET}/LinearMath ${BF_BULLET}/BulletDynamics ${BF_BULLET}/Bullet'
82 BF_BULLET_LIB = 'extern_bullet'
83
84 BF_SOLID = '#extern/solid'
85 BF_SOLID_INC = '${BF_SOLID}'
86 BF_SOLID_LIB = 'extern_solid'
87
88 #WITH_BF_NSPR = 'true'
89 #BF_NSPR = $(LCGDIR)/nspr
90 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
91 #BF_NSPR_LIB = 
92
93 # Uncomment the following line to use Mozilla inplace of netscape
94 #CPPFLAGS += -DMOZ_NOT_NET
95 # Location of MOZILLA/Netscape header files...
96 #BF_MOZILLA = $(LCGDIR)/mozilla
97 #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
98 #BF_MOZILLA_LIB =
99 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
100 # if this is not set.
101 #
102 # Be paranoid regarding library creation (do not update archives)
103 #BF_PARANOID = 'true'
104
105 # enable freetype2 support for text objects
106 BF_FREETYPE = LCGDIR + '/freetype'
107 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
108 BF_FREETYPE_LIB = 'freetype2ST'
109 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
110
111 WITH_BF_QUICKTIME = 'true' # -DWITH_QUICKTIME
112 BF_QUICKTIME = LCGDIR + '/QTDevWin'
113 BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
114 BF_QUICKTIME_LIB = 'qtmlClient'
115 BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
116
117 # Mesa Libs should go here if your using them as well....
118 WITH_BF_OPENGL = 'true'
119 #BF_OPENGL = 'C:\\MingW'
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 ##
127 ##CC = gcc
128 ##CCC = g++
129 ##ifeq ($CPU),alpha)
130 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
131
132 CCFLAGS = ['/nologo', '/Og', '/Ot', '/Ob1', '/Op', '/G6','/EHsc', '/J', '/W3', '/Gd', '/MT']
133
134 CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DUSE_OPENAL', '-DFTGL_LIBRARY_STATIC']
135 REL_CFLAGS = ['-O2', '-DNDEBUG']
136 REL_CCFLAGS = ['-O2', '-DNDEBUG']
137 ##BF_DEPEND = 'true'
138 ##
139 ##AR = ar
140 ##ARFLAGS = ruv
141 ##ARFLAGSQUIET = ru
142 ##
143 C_WARN = []
144 #
145 CC_WARN = []
146
147 ##FIX_STUBS_WARNINGS = -Wno-unused
148
149 LLIBS = 'ws2_32 dxguid vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid'  #[ '-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
150
151 PLATFORM_LINKFLAGS = '''
152                         /SUBSYSTEM:CONSOLE 
153                         /MACHINE:IX86 
154                         /ENTRY:mainCRTStartup 
155                         /INCREMENTAL:NO 
156                         /NODEFAULTLIB:"msvcprt.lib" 
157                         /NODEFAULTLIB:"glut32.lib" 
158                         /NODEFAULTLIB:"libc.lib"
159                         /NODEFAULTLIB:"libcd.lib"
160                         /NODEFAULTLIB:"libcpd.lib" 
161                         /NODEFAULTLIB:"libcp.lib" 
162                         /NODEFAULTLIB:"libcmtd.lib"
163                     '''
164                         
165 ##LOPTS = --dynamic
166 ##DYNLDFLAGS = -shared $(LDFLAGS)
167
168 BF_BUILDDIR = '..\\build\\win32-vc'
169 BF_INSTALLDIR='..\\install\\win32-vc'