Integrated Freestyle to rendering pipeline
[blender.git] / config / win32-mingw-config.py
1 LCGDIR = '#../lib/windows'
2 LIBDIR = "${LCGDIR}"
3
4 BF_PYTHON = LIBDIR + '/python'
5 BF_PYTHON_VERSION = '3.1'
6 WITH_BF_STATICPYTHON = False
7 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
8 BF_PYTHON_BINARY = 'python'
9 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}'
10 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
11 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}.a'
12
13 WITH_BF_OPENAL = True
14 BF_OPENAL = LIBDIR + '/openal'
15 BF_OPENAL_INC = '${BF_OPENAL}/include'
16 BF_OPENAL_LIB = 'wrap_oal'
17 BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
18
19 WITH_BF_FFMPEG = False
20 BF_FFMPEG_LIB = 'avformat-52 avcodec-52 avdevice-52 avutil-50 swscale-0'
21 BF_FFMPEG_LIBPATH = LIBDIR + '/ffmpeg/lib'
22 BF_FFMPEG_INC =  LIBDIR + '/ffmpeg/include'
23
24 BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
25 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
26 BF_LIBSAMPLERATE_LIB = 'libsamplerate'
27 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
28
29 WITH_BF_JACK = False
30 BF_JACK = LIBDIR + '/jack'
31 BF_JACK_INC = '${BF_JACK}/include'
32 BF_JACK_LIB = 'libjack'
33 BF_JACK_LIBPATH = '${BF_JACK}/lib'
34
35 WITH_BF_SNDFILE = False
36 BF_SNDFILE = LIBDIR + '/sndfile'
37 BF_SNDFILE_INC = '${BF_SNDFILE}/include'
38 BF_SNDFILE_LIB = 'libsndfile-1'
39 BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
40
41 WITH_BF_SDL = True
42 BF_SDL = LIBDIR + '/sdl'
43 BF_SDL_INC = '${BF_SDL}/include'
44 BF_SDL_LIB = 'SDL'
45 BF_SDL_LIBPATH = '${BF_SDL}/lib'
46
47 BF_PTHREADS = LIBDIR + '/pthreads'
48 BF_PTHREADS_INC = '${BF_PTHREADS}/include'
49 BF_PTHREADS_LIB = 'pthreadGC2'
50 BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
51
52 WITH_BF_OPENEXR = True
53 WITH_BF_STATICOPENEXR = False
54 BF_OPENEXR = LIBDIR + '/gcc/openexr'
55 BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
56 BF_OPENEXR_LIB = ' Half IlmImf Iex '
57 BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
58 # Warning, this static lib configuration is untested! users of this OS please confirm.
59 BF_OPENEXR_LIB_STATIC = '${BF_OPENEXR}/lib/libHalf.a ${BF_OPENEXR}/lib/libIlmImf.a ${BF_OPENEXR}/lib/libIex.a ${BF_OPENEXR}/lib/libImath.a ${BF_OPENEXR}/lib/libIlmThread.a'
60
61 WITH_BF_DDS = True
62
63 WITH_BF_JPEG = True
64 BF_JPEG = LIBDIR + '/jpeg'
65 BF_JPEG_INC = '${BF_JPEG}/include'
66 BF_JPEG_LIB = 'jpeg'
67 BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
68
69 WITH_BF_PNG = True
70 BF_PNG = LIBDIR + '/png'
71 BF_PNG_INC = '${BF_PNG}/include'
72 BF_PNG_LIB = 'png'
73 BF_PNG_LIBPATH = '${BF_PNG}/lib'
74
75 BF_TIFF = LIBDIR + '/tiff'
76 BF_TIFF_INC = '${BF_TIFF}/include'
77 BF_TIFF_LIB = 'libtiff'
78 BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
79
80 WITH_BF_ZLIB = True
81 BF_ZLIB = LIBDIR + '/zlib'
82 BF_ZLIB_INC = '${BF_ZLIB}/include'
83 BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
84
85 WITH_BF_INTERNATIONAL = True
86
87 BF_GETTEXT = LIBDIR + '/gettext'
88 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
89 BF_GETTEXT_LIB = 'gnu_gettext'
90 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
91
92 WITH_BF_GAMEENGINE = False
93 WITH_BF_PLAYER = False
94
95 WITH_BF_BULLET = True
96 BF_BULLET = '#extern/bullet2/src'
97 BF_BULLET_INC = '${BF_BULLET}'
98 BF_BULLET_LIB = 'extern_bullet'
99
100 BF_WINTAB = LIBDIR + '/wintab'
101 BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
102
103 # enable freetype2 support for text objects
104 BF_FREETYPE = LIBDIR + '/gcc/freetype'
105 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
106 BF_FREETYPE_LIB = 'freetype'
107 BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
108
109 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
110 BF_QUICKTIME = '/usr/local'
111 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
112
113 WITH_BF_ICONV = False
114 BF_ICONV = LIBDIR + "/iconv"
115 BF_ICONV_INC = '${BF_ICONV}/include'
116 BF_ICONV_LIB = 'iconv'
117 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
118
119 # Mesa Libs should go here if your using them as well....
120 WITH_BF_STATICOPENGL = False
121 BF_OPENGL = 'C:\\MingW'
122 BF_OPENGL_INC = '${BF_OPENGL}/include'
123 BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
124 BF_OPENGL_LIB = 'opengl32 glu32'
125 BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
126              '${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
127              '${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
128 ##
129 CC = 'gcc'
130 CXX = 'g++'
131
132 CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
133
134 CPPFLAGS = [ '-DXP_UNIX', '-DWIN32', '-DFREE_WINDOWS' ]
135 CXXFLAGS = ['-pipe', '-mwindows', '-funsigned-char', '-fno-strict-aliasing' ]
136 REL_CFLAGS = [ '-O2' ]
137 REL_CCFLAGS = [ '-O2' ]
138
139 C_WARN = [ '-Wno-char-subscripts', '-Wdeclaration-after-statement' ]
140
141 CC_WARN = [ '-Wall' ]
142
143 LLIBS = ['-lshell32', '-lshfolder', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++']
144
145 BF_DEBUG = False
146 BF_DEBUG_CCFLAGS= ['-g']
147
148 BF_PROFILE_CCFLAGS = ['-pg', '-g']
149 BF_PROFILE_LINKFLAGS = ['-pg']
150 BF_PROFILE_FLAGS = BF_PROFILE_CCFLAGS
151 BF_PROFILE = False
152
153 BF_BUILDDIR = '..\\build\\win32-mingw'
154 BF_INSTALLDIR='..\\install\\win32-mingw'
155 BF_DOCDIR = '..\\install\\doc'