==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.4'
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
19 WITH_BF_SDL = 'true'
20 BF_SDL = '/usr' #$(shell sdl-config --prefix)
21 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
22 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
23
24 WITH_BF_FMOD = 'false'
25 BF_FMOD = LIBDIR + '/fmod'
26
27 WITH_BF_OPENEXR = 'true'
28 BF_OPENEXR = '/usr'
29 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
30 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
31
32 WITH_BF_JPEG = 'true'
33 BF_JPEG = '/usr'
34 BF_JPEG_INC = '${BF_JPEG}/include'
35 BF_JPEG_LIB = 'jpeg'
36
37 WITH_BF_PNG = 'true'
38 BF_PNG = '/usr'
39 BF_PNG_INC = '${BF_PNG}/include'
40 BF_PNG_LIB = 'png'
41
42 BF_TIFF = '/usr'
43 BF_TIFF_INC = '${BF_TIFF}/include'
44
45 WITH_BF_ZLIB = 'true'
46 BF_ZLIB = '/usr'
47 BF_ZLIB_INC = '${BF_ZLIB}/include'
48 BF_ZLIB_LIB = 'z'
49
50 WITH_BF_INTERNATIONAL = 'true'
51
52 BF_GETTEXT = '/usr'
53 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
54 BF_GETTEXT_LIB = 'gettextlib'
55 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
56
57 WITH_BF_FTGL = 'true'
58 BF_FTGL = '#extern/bFTGL'
59 BF_FTGL_INC = '${BF_FTGL}/include'
60 BF_FTGL_LIB = 'extern_ftgl'
61
62 WITH_BF_GAMEENGINE='false'
63
64 WITH_BF_ODE = 'false'
65 BF_ODE = LIBDIR + '/ode'
66 BF_ODE_INC = BF_ODE + '/include'
67 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
68
69 WITH_BF_BULLET = 'true'
70 BF_BULLET = '#extern/bullet2/src'
71 BF_BULLET_INC = '${BF_BULLET}'
72 BF_BULLET_LIB = 'extern_bullet'
73
74 BF_SOLID = '#extern/solid'
75 BF_SOLID_INC = '${BF_SOLID}'
76 BF_SOLID_LIB = 'extern_solid'
77
78 WITH_BF_YAFRAY = 'true'
79
80 #WITH_BF_NSPR = 'true'
81 #BF_NSPR = $(LIBDIR)/nspr
82 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
83 #BF_NSPR_LIB = 
84
85 # Uncomment the following line to use Mozilla inplace of netscape
86 #CPPFLAGS += -DMOZ_NOT_NET
87 # Location of MOZILLA/Netscape header files...
88 #BF_MOZILLA = $(LIBDIR)/mozilla
89 #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
90 #BF_MOZILLA_LIB =
91 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
92 # if this is not set.
93 #
94 # Be paranoid regarding library creation (do not update archives)
95 #BF_PARANOID = 'true'
96
97 # enable freetype2 support for text objects
98 BF_FREETYPE = '/usr'
99 BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
100 BF_FREETYPE_LIB = 'freetype'
101
102 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
103 BF_QUICKTIME = '/usr/local'
104 BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
105
106 WITH_BF_ICONV = 'false'
107 BF_ICONV = LIBDIR + "/iconv"
108 BF_ICONV_INC = '${BF_ICONV}/include'
109 BF_ICONV_LIB = 'iconv'
110 BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
111
112 # enable ffmpeg  support
113 WITH_BF_FFMPEG = 'false'  # -DWITH_FFMPEG
114 BF_FFMPEG = '/usr'
115 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
116 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
117 BF_FFMPEG_LIB = 'avformat avcodec avutil'
118
119 # Mesa Libs should go here if your using them as well....
120 WITH_BF_STATICOPENGL = 'false'
121 BF_OPENGL = '/usr'
122 BF_OPENGL_INC = '${BF_OPENGL}/include'
123 BF_OPENGL_LIB = 'GL GLU X11 Xi'
124 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
125 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'
126
127 ##
128 CC = 'gcc'
129 CXX = 'g++'
130 ##ifeq ($CPU),alpha)
131 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
132
133 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
134
135 CPPFLAGS = ['-DXP_UNIX']
136 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
137 REL_CFLAGS = ['-O2']
138 REL_CCFLAGS = ['-O2']
139 ##BF_DEPEND = 'true'
140 ##
141 ##AR = ar
142 ##ARFLAGS = ruv
143 ##ARFLAGSQUIET = ru
144 ##
145 C_WARN = '-Wall -Wno-char-subscripts'
146
147 CC_WARN = '-Wall'
148
149 ##FIX_STUBS_WARNINGS = -Wno-unused
150
151 LLIBS = 'util c m dl pthread stdc++'
152 ##LOPTS = --dynamic
153 ##DYNLDFLAGS = -shared $(LDFLAGS)
154
155 BF_PROFILE_FLAGS = ['-pg','-g']
156 BF_PROFILE = 'false'
157
158 BF_DEBUG = 'false'
159 BF_DEBUG_FLAGS = '-g'
160
161 BF_BUILDDIR = '../build/linux2'
162 BF_INSTALLDIR='../install/linux2'
163
164
165 #Link against pthread
166 PLATFORM_LINKFLAGS = ['-pthread']