== SCONS ==
[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_NSPR = 'true'
90 #BF_NSPR = $(LIBDIR)/nspr
91 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
92 #BF_NSPR_LIB = 
93
94 # Uncomment the following line to use Mozilla inplace of netscape
95 #CPPFLAGS += -DMOZ_NOT_NET
96 # Location of MOZILLA/Netscape header files...
97 #BF_MOZILLA = $(LIBDIR)/mozilla
98 #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
99 #BF_MOZILLA_LIB =
100 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
101 # if this is not set.
102 #
103 # Be paranoid regarding library creation (do not update archives)
104 #BF_PARANOID = 'true'
105
106 # enable freetype2 support for text objects
107 BF_FREETYPE = '/usr'
108 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
109 BF_FREETYPE_LIB = 'freetype'
110
111 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
112 BF_QUICKTIME = '/usr/local'
113 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
114
115 WITH_BF_ICONV = 'false'
116 BF_ICONV = LIBDIR + "/iconv"
117 BF_ICONV_INC = '${BF_ICONV}/include'
118 BF_ICONV_LIB = 'iconv'
119 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
120
121 WITH_BF_BINRELOC = 'true'
122
123 # enable ffmpeg  support
124 WITH_BF_FFMPEG = 'true'  # -DWITH_FFMPEG
125 BF_FFMPEG = '#extern/ffmpeg'
126 BF_FFMPEG_LIB = ''
127 # Uncomment the following two lines to use system's ffmpeg
128 # BF_FFMPEG = '/usr'
129 # BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
130 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
131 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
132
133 # Mesa Libs should go here if your using them as well....
134 WITH_BF_STATICOPENGL = 'false'
135 BF_OPENGL = '/usr'
136 BF_OPENGL_INC = '${BF_OPENGL}/include'
137 BF_OPENGL_LIB = 'GL GLU X11 Xi'
138 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
139 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'
140
141 ##
142 CC = 'gcc'
143 CXX = 'g++'
144 ##ifeq ($CPU),alpha)
145 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
146
147 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
148
149 CPPFLAGS = ['-DXP_UNIX']
150 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
151 REL_CFLAGS = ['-O2']
152 REL_CCFLAGS = ['-O2']
153 ##BF_DEPEND = 'true'
154 ##
155 ##AR = ar
156 ##ARFLAGS = ruv
157 ##ARFLAGSQUIET = ru
158 ##
159 C_WARN = '-Wall -Wno-char-subscripts -Wdeclaration-after-statement'
160
161 CC_WARN = '-Wall'
162
163 ##FIX_STUBS_WARNINGS = -Wno-unused
164
165 LLIBS = 'util c m dl pthread stdc++'
166 ##LOPTS = --dynamic
167 ##DYNLDFLAGS = -shared $(LDFLAGS)
168
169 BF_PROFILE_FLAGS = ['-pg','-g']
170 BF_PROFILE = 'false'
171
172 BF_DEBUG = 'false'
173 BF_DEBUG_FLAGS = '-g'
174
175 BF_BUILDDIR = '../build/linux2'
176 BF_INSTALLDIR='../install/linux2'
177
178
179 #Link against pthread
180 PLATFORM_LINKFLAGS = ['-pthread']
181