[#19232] (2.5) Correction of cmake for windows about audio (jack and openal)
[blender.git] / config / linux2-config.py
1 LCGDIR = '../lib/linux2'
2 LIBDIR = "${LCGDIR}"
3
4 BF_PYTHON = '/usr'
5 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
6 BF_PYTHON_VERSION = '3.1'
7 WITH_BF_STATICPYTHON = False
8 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
9 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
10 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
11 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
12 BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}.a'
13
14 WITH_BF_OPENAL = True
15 WITH_BF_STATICOPENAL = False
16 BF_OPENAL = '/usr'
17 BF_OPENAL_INC = '${BF_OPENAL}/include'
18 BF_OPENAL_LIB = 'openal'
19 BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
20
21 BF_CXX = '/usr'
22 WITH_BF_STATICCXX = False
23 BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
24
25 BF_LIBSAMPLERATE = '/usr'
26 BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
27 BF_LIBSAMPLERATE_LIB = 'samplerate'
28 BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
29
30 WITH_BF_JACK = False
31 BF_JACK = '/usr'
32 BF_JACK_INC = '${BF_JACK}/include/jack'
33 BF_JACK_LIB = 'jack'
34 BF_JACK_LIBPATH = '${BF_JACK}/lib'
35
36 WITH_BF_SDL = True
37 BF_SDL = '/usr' #$(shell sdl-config --prefix)
38 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
39 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
40
41 WITH_BF_OPENEXR = True
42 WITH_BF_STATICOPENEXR = False
43 BF_OPENEXR = '/usr'
44 # when compiling with your own openexr lib you might need to set...
45 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
46
47 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
48 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
49 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'
50 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
51
52
53 WITH_BF_DDS = True
54
55 WITH_BF_JPEG = True
56 BF_JPEG = '/usr'
57 BF_JPEG_INC = '${BF_JPEG}/include'
58 BF_JPEG_LIB = 'jpeg'
59
60 WITH_BF_PNG = True
61 BF_PNG = '/usr'
62 BF_PNG_INC = '${BF_PNG}/include'
63 BF_PNG_LIB = 'png'
64
65 BF_TIFF = '/usr'
66 BF_TIFF_INC = '${BF_TIFF}/include'
67
68 WITH_BF_ZLIB = True
69 BF_ZLIB = '/usr'
70 BF_ZLIB_INC = '${BF_ZLIB}/include'
71 BF_ZLIB_LIB = 'z'
72
73 WITH_BF_INTERNATIONAL = True
74
75 BF_GETTEXT = '/usr'
76 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
77 BF_GETTEXT_LIB = 'gettextlib'
78 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
79
80 WITH_BF_GAMEENGINE = True
81 WITH_BF_PLAYER = False
82
83 WITH_BF_BULLET = True
84 BF_BULLET = '#extern/bullet2/src'
85 BF_BULLET_INC = '${BF_BULLET}'
86 BF_BULLET_LIB = 'extern_bullet'
87
88 #WITH_BF_NSPR = True
89 #BF_NSPR = $(LIBDIR)/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 = $(LIBDIR)/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 = '/usr'
107 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
108 BF_FREETYPE_LIB = 'freetype'
109
110 WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
111 BF_QUICKTIME = '/usr/local'
112 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
113
114 WITH_BF_ICONV = False
115 BF_ICONV = LIBDIR + "/iconv"
116 BF_ICONV_INC = '${BF_ICONV}/include'
117 BF_ICONV_LIB = 'iconv'
118 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
119
120 WITH_BF_BINRELOC = True
121
122 # enable ffmpeg  support
123 WITH_BF_FFMPEG = True  # -DWITH_FFMPEG
124 BF_FFMPEG = '#extern/ffmpeg'
125 BF_FFMPEG_LIB = ''
126 # Uncomment the following two lines to use system's ffmpeg
127 # BF_FFMPEG = '/usr'
128 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
129 BF_FFMPEG_INC = '${BF_FFMPEG}'
130 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
131
132 # enable ogg, vorbis and theora in ffmpeg
133 WITH_BF_OGG = False  # -DWITH_OGG 
134 BF_OGG = '/usr'
135 BF_OGG_INC = '${BF_OGG}/include'
136 BF_OGG_LIB = 'ogg vorbis vorbisenc theoraenc theoradec'
137
138 WITH_BF_OPENJPEG = True 
139 BF_OPENJPEG = '#extern/libopenjpeg'
140 BF_OPENJPEG_LIB = ''
141 BF_OPENJPEG_INC = '${BF_OPENJPEG}'
142 BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
143
144 WITH_BF_FFTW3 = False
145 BF_FFTW3 = LIBDIR + '/usr'
146 BF_FFTW3_INC = '${BF_FFTW3}/include'
147 BF_FFTW3_LIB = 'fftw3'
148 BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
149
150 WITH_BF_REDCODE = False  
151 BF_REDCODE = '#extern/libredcode'
152 BF_REDCODE_LIB = ''
153 # BF_REDCODE_INC = '${BF_REDCODE}/include'
154 BF_REDCODE_INC = '${BF_REDCODE}/../' #C files request "libredcode/format.h" which is in "#extern/libredcode/format.h", stupid but compiles for now.
155 BF_REDCODE_LIBPATH='${BF_REDCODE}/lib'
156
157 # Mesa Libs should go here if your using them as well....
158 WITH_BF_STATICOPENGL = False
159 BF_OPENGL = '/usr'
160 BF_OPENGL_INC = '${BF_OPENGL}/include'
161 BF_OPENGL_LIB = 'GL GLU X11 Xi'
162 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
163 BF_OPENGL_LIB_STATIC = '${BF_OPENGL_LIBPATH}/libGL.a ${BF_OPENGL_LIBPATH}/libGLU.a ${BF_OPENGL_LIBPATH}/libXxf86vm.a ${BF_OPENGL_LIBPATH}/libX11.a ${BF_OPENGL_LIBPATH}/libXi.a ${BF_OPENGL_LIBPATH}/libXext.a ${BF_OPENGL_LIBPATH}/libXxf86vm.a'
164
165 ##
166 CC = 'gcc'
167 CXX = 'g++'
168 ##ifeq ($CPU),alpha)
169 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
170
171 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
172
173 CPPFLAGS = ['-DXP_UNIX']
174 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
175 REL_CFLAGS = ['-O2']
176 REL_CCFLAGS = ['-O2']
177 ##BF_DEPEND = True
178 ##
179 ##AR = ar
180 ##ARFLAGS = ruv
181 ##ARFLAGSQUIET = ru
182 ##
183 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement']
184 CC_WARN = ['-Wall']
185 CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
186
187
188 ##FIX_STUBS_WARNINGS = -Wno-unused
189
190 LLIBS = ['util', 'c', 'm', 'dl', 'pthread', 'stdc++']
191 ##LOPTS = --dynamic
192 ##DYNLDFLAGS = -shared $(LDFLAGS)
193
194 BF_PROFILE = False
195 BF_PROFILE_CCFLAGS = ['-pg','-g']
196 BF_PROFILE_LINKFLAGS = ['-pg']
197
198 BF_DEBUG = False
199 BF_DEBUG_CCFLAGS = ['-g']
200
201 BF_BUILDDIR = '../build/linux2'
202 BF_INSTALLDIR='../install/linux2'
203 BF_DOCDIR='../install/doc'
204
205
206 #Link against pthread
207 PLATFORM_LINKFLAGS = ['-pthread']
208