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