=== MINGW compile ===
[blender-staging.git] / config / win32-mingw-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'
12 BF_OPENAL_LIB = 'openal_static'
13 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
14
15 WITH_BF_SDL = 'true'
16 BF_SDL = LCGDIR + '/sdl'
17 BF_SDL_INC = '${BF_SDL}/include'
18 BF_SDL_LIB = 'SDL'
19 BF_SDL_LIBPATH = '${BF_SDL}/lib'
20
21 BF_PTHREADS = LCGDIR + '/pthreads'
22 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
23 BF_PTHREADS_LIB = 'pthreadGC2'
24 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
25
26 WITH_BF_FMOD = 'false'
27 BF_FMOD = LCGDIR + '/fmod'
28
29 WITH_BF_OPENEXR = 'true'
30 BF_OPENEXR = LCGDIR + '/gcc/openexr'
31 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
32 BF_OPENEXR_LIB = ' Half IlmImf Iex '
33 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
34
35 WITH_BF_JPEG = 'true'
36 BF_JPEG = LCGDIR + '/jpeg'
37 BF_JPEG_INC = '${BF_JPEG}/include'
38 BF_JPEG_LIB = 'jpeg'
39 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
40
41 WITH_BF_PNG = 'true'
42 BF_PNG = LCGDIR + '/png'
43 BF_PNG_INC = '${BF_PNG}/include'
44 BF_PNG_LIB = 'png'
45 BF_PNG_LIBPATH = '${BF_PNG}/lib'
46
47 BF_TIFF = LCGDIR + '/tiff'
48 BF_TIFF_INC = '${BF_TIFF}/include'
49
50 WITH_BF_ZLIB = 'true'
51 BF_ZLIB = LCGDIR + '/zlib'
52 BF_ZLIB_INC = '${BF_ZLIB}/include'
53 #BF_ZLIB_LIB = 'z'
54 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
55
56 WITH_BF_INTERNATIONAL = 'true'
57
58 BF_GETTEXT = LCGDIR + '/gettext'
59 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
60 BF_GETTEXT_LIB = 'gnu_gettext'
61 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
62
63 WITH_BF_FTGL = 'true'
64 BF_FTGL = LCGDIR + '/ftgl'
65 BF_FTGL_INC = '${BF_FTGL}/include'
66 BF_FTGL_LIB = 'extern_ftgl'
67
68 WITH_BF_GAMEENGINE = 'false'
69
70 WITH_BF_ODE = 'true'
71 BF_ODE = LCGDIR + '/ode'
72 BF_ODE_INC = BF_ODE + '/include'
73 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
74
75 WITH_BF_BULLET = 'true'
76 BF_BULLET = '#extern/bullet'
77 BF_BULLET_INC = '${BF_BULLET}/LinearMath ${BF_BULLET}/BulletDynamics ${BF_BULLET}/Bullet'
78 BF_BULLET_LIB = 'extern_bullet'
79
80 BF_SOLID = '#extern/solid'
81 BF_SOLID_INC = '${BF_SOLID}'
82 BF_SOLID_LIB = 'extern_solid'
83
84 #WITH_BF_NSPR = 'true'
85 #BF_NSPR = $(LCGDIR)/nspr
86 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
87 #BF_NSPR_LIB = 
88
89 # Uncomment the following line to use Mozilla inplace of netscape
90 #CPPFLAGS += -DMOZ_NOT_NET
91 # Location of MOZILLA/Netscape header files...
92 #BF_MOZILLA = $(LCGDIR)/mozilla
93 #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
94 #BF_MOZILLA_LIB =
95 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
96 # if this is not set.
97 #
98 # Be paranoid regarding library creation (do not update archives)
99 #BF_PARANOID = 'true'
100
101 # enable freetype2 support for text objects
102 BF_FREETYPE = LCGDIR + '/gcc/freetype'
103 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
104 BF_FREETYPE_LIB = 'freetype'
105 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
106
107 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
108 BF_QUICKTIME = '/usr/local'
109 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
110
111 # Mesa Libs should go here if your using them as well....
112 WITH_BF_STATICOPENGL = 'false'
113 BF_OPENGL = 'C:\\MingW'
114 BF_OPENGL_INC = '${BF_OPENGL}/include'
115 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
116 BF_OPENGL_LIB = 'opengl32 glu32'
117 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
118              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
119              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
120 ##
121 CC = 'gcc'
122 CXX = 'g++'
123 ##ifeq ($CPU),alpha)
124 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
125
126 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
127
128 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
129 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
130 REL_CFLAGS = [ '-O2' ]
131 REL_CCFLAGS = [ '-O2' ]
132 ##BF_DEPEND = 'true'
133 ##
134 ##AR = ar
135 ##ARFLAGS = ruv
136 ##ARFLAGSQUIET = ru
137 ##
138 C_WARN = [ '-Wall' , '-Wno-char-subscripts' ]
139
140 CC_WARN = [ '-Wall' ]
141
142 ##FIX_STUBS_WARNINGS = -Wno-unused
143
144 LLIBS = ['-lshfolder', '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread']
145 ##LOPTS = --dynamic
146 ##DYNLDFLAGS = -shared $(LDFLAGS)
147
148 BF_DEBUG = 'false'
149 BF_DEBUG_FLAGS= '-g'
150
151 BF_BUILDDIR = '..\\build\\win32-mingw'
152 BF_INSTALLDIR='..\\install\\win32-mingw'