soc-2008-mxcurioni: swig compiles as independent library
[blender.git] / config / linux2-config.py
1 LCGDIR = '../lib/linux2'
2 LIBDIR = "${LCGDIR}"
3
4 WITH_BF_VERSE = 'false'
5 BF_VERSE_INCLUDE = "#extern/verse/dist"
6
7 BF_PYTHON = '/usr'
8 BF_PYTHON_VERSION = '2.5'
9 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
10 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
11 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
12 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
13
14 WITH_BF_OPENAL = 'true'
15 BF_OPENAL = '/usr'
16 BF_OPENAL_INC = '${BF_OPENAL}/include'
17 BF_OPENAL_LIB = 'openal'
18 # some distros have a separate libalut
19 # if you get linker complaints, you need to uncomment the line below
20 # BF_OPENAL_LIB = 'openal alut'  
21
22 WITH_BF_SDL = 'true'
23 BF_SDL = '/usr' #$(shell sdl-config --prefix)
24 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
25 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
26
27 WITH_BF_FMOD = 'false'
28 BF_FMOD = LIBDIR + '/fmod'
29
30 WITH_BF_OPENEXR = 'true'
31 BF_OPENEXR = '/usr'
32 # when compiling with your own openexr lib you might need to set...
33 # BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR ${BF_OPENEXR}/include'
34
35 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
36 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
37 # BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
38
39 WITH_BF_DDS = 'true'
40
41 WITH_BF_JPEG = 'true'
42 BF_JPEG = '/usr'
43 BF_JPEG_INC = '${BF_JPEG}/include'
44 BF_JPEG_LIB = 'jpeg'
45
46 WITH_BF_PNG = 'true'
47 BF_PNG = '/usr'
48 BF_PNG_INC = '${BF_PNG}/include'
49 BF_PNG_LIB = 'png'
50
51 BF_TIFF = '/usr'
52 BF_TIFF_INC = '${BF_TIFF}/include'
53
54 WITH_BF_ZLIB = 'true'
55 BF_ZLIB = '/usr'
56 BF_ZLIB_INC = '${BF_ZLIB}/include'
57 BF_ZLIB_LIB = 'z'
58
59 WITH_BF_INTERNATIONAL = 'true'
60
61 BF_GETTEXT = '/usr'
62 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
63 BF_GETTEXT_LIB = 'gettextlib'
64 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
65
66 WITH_BF_FTGL = 'true'
67 BF_FTGL = '#extern/bFTGL'
68 BF_FTGL_INC = '${BF_FTGL}/include'
69 BF_FTGL_LIB = 'extern_ftgl'
70
71 WITH_BF_GAMEENGINE='false'
72
73 WITH_BF_ODE = 'false'
74 BF_ODE = LIBDIR + '/ode'
75 BF_ODE_INC = BF_ODE + '/include'
76 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
77
78 WITH_BF_BULLET = 'true'
79 BF_BULLET = '#extern/bullet2/src'
80 BF_BULLET_INC = '${BF_BULLET}'
81 BF_BULLET_LIB = 'extern_bullet'
82
83 BF_SOLID = '#extern/solid'
84 BF_SOLID_INC = '${BF_SOLID}'
85 BF_SOLID_LIB = 'extern_solid'
86
87 WITH_BF_YAFRAY = 'true'
88
89 WITH_BF_FREESTYLE = 'true'
90 BF_FREESTYLE = '#extern/freestyle'
91 BF_FREESTYLE_SRC = '#source/blender/freestyle/src'
92 BF_SWIG = '${BF_FREESTYLE}/swig'
93 BF_SWIG_LIB = 'extern_swig'
94 BF_LIB3DS = '${BF_FREESTYLE}/lib3ds'
95 BF_LIB3DS_LIB = 'extern_lib3ds'
96 BF_LIB3DS_LIBPATH = '${BF_LIB3DS}/lib3ds/.libs'
97 BF_LIB3DS_INC = '${BF_LIB3DS}/lib3ds'
98
99 #WITH_BF_NSPR = 'true'
100 #BF_NSPR = $(LIBDIR)/nspr
101 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
102 #BF_NSPR_LIB = 
103
104 # Uncomment the following line to use Mozilla inplace of netscape
105 #CPPFLAGS += -DMOZ_NOT_NET
106 # Location of MOZILLA/Netscape header files...
107 #BF_MOZILLA = $(LIBDIR)/mozilla
108 #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
109 #BF_MOZILLA_LIB =
110 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
111 # if this is not set.
112 #
113 # Be paranoid regarding library creation (do not update archives)
114 #BF_PARANOID = 'true'
115
116 # enable freetype2 support for text objects
117 BF_FREETYPE = '/usr'
118 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
119 BF_FREETYPE_LIB = 'freetype'
120
121 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
122 BF_QUICKTIME = '/usr/local'
123 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
124
125 WITH_BF_ICONV = 'false'
126 BF_ICONV = LIBDIR + "/iconv"
127 BF_ICONV_INC = '${BF_ICONV}/include'
128 BF_ICONV_LIB = 'iconv'
129 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
130
131 WITH_BF_BINRELOC = 'true'
132
133 # enable ffmpeg  support
134 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
135 BF_FFMPEG = '#extern/ffmpeg'
136 BF_FFMPEG_LIB = ''
137 # Uncomment the following two lines to use system's ffmpeg
138 # BF_FFMPEG = '/usr'
139 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
140 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
141 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
142
143 # Mesa Libs should go here if your using them as well....
144 WITH_BF_STATICOPENGL = 'false'
145 BF_OPENGL = '/usr'
146 BF_OPENGL_INC = '${BF_OPENGL}/include'
147 BF_OPENGL_LIB = 'GL GLU X11 Xi'
148 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
149 BF_OPENGL_LIB_STATIC = '${BF_OPENGL}/libGL.a ${BF_OPENGL}/libGLU.a ${BF_OPENGL}/libXxf86vm.a ${BF_OPENGL}/libX11.a ${BF_OPENGL}/libXi.a ${BF_OPENGL}/libXext.a ${BF_OPENGL}/libXxf86vm.a'
150
151 ##
152 CC = 'gcc'
153 CXX = 'g++'
154 ##ifeq ($CPU),alpha)
155 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
156
157 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
158
159 CPPFLAGS = ['-DXP_UNIX']
160 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
161 REL_CFLAGS = ['-O2']
162 REL_CCFLAGS = ['-O2']
163 ##BF_DEPEND = 'true'
164 ##
165 ##AR = ar
166 ##ARFLAGS = ruv
167 ##ARFLAGSQUIET = ru
168 ##
169 C_WARN = '-Wall -Wno-char-subscripts -Wdeclaration-after-statement'
170
171 CC_WARN = '-Wall'
172
173 ##FIX_STUBS_WARNINGS = -Wno-unused
174
175 LLIBS = 'util c m dl pthread stdc++'
176 ##LOPTS = --dynamic
177 ##DYNLDFLAGS = -shared $(LDFLAGS)
178
179 BF_PROFILE_FLAGS = ['-pg','-g']
180 BF_PROFILE = 'false'
181
182 BF_DEBUG = 'false'
183 BF_DEBUG_FLAGS = '-g'
184
185 BF_BUILDDIR = '../build/linux2'
186 BF_INSTALLDIR='../install/linux2'
187
188
189 #Link against pthread
190 PLATFORM_LINKFLAGS = ['-pthread']
191