== SCons ==
[blender-staging.git] / config / linuxcross-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_JPEG = 'true'
22 BF_JPEG = '/usr'
23 BF_JPEG_INC = BF_JPEG + '/include'
24 BF_JPEG_LIB = 'jpeg'
25
26 WITH_BF_OPENEXR = 'true'
27 BF_OPENEXR = '/usr'
28 BF_OPENEXR_INC = BF_OPENEXR + '/include/OpenEXR'
29 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath '
30
31 WITH_BF_PNG = 'true'
32 BF_PNG = '/usr'
33 BF_PNG_INC = BF_PNG + '/include'
34 BF_PNG_LIB = 'png'
35
36 WITH_BF_TIFF = 'true'
37 BF_TIFF = '/usr'
38 BF_TIFF_INC = BF_TIFF + '/include'
39 BF_TIFF_LIB = 'tiff'
40
41 WITH_BF_ZLIB = 'true'
42 BF_ZLIB = '/usr'
43 BF_ZLIB_INC = BF_ZLIB + '/include'
44 BF_ZLIB_LIB = 'z'
45
46 WITH_BF_GETTEXT = 'true'
47 BF_GETTEXT = '/usr'
48 BF_GETTEXT_INC = BF_GETTEXT + '/include'
49 BF_GETTEXT_LIB = BF_GETTEXT + '/lib/libintl.a'
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
57 WITH_BF_ODE = 'false'
58 BF_ODE = LCGDIR + '/ode'
59 BF_ODE_INC = BF_ODE + '/include'
60 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
61
62 WITH_BF_BULLET = 'true'
63 BF_BULLET = '#extern/bullet'
64 BF_BULLET_INC = BF_BULLET + '/LinearMath ' + BF_BULLET + '/BulletDynamics ' + BF_BULLET + '/Bullet'
65 BF_BULLET_LIB = 'extern_bullet'
66
67 BF_SOLID = '#extern/solid'
68 BF_SOLID_INC = BF_SOLID + '/include ' + BF_SOLID
69 BF_SOLID_LIB = 'extern_solid'
70
71 #WITH_BF_NSPR = 'true'
72 #BF_NSPR = $(LCGDIR)/nspr
73 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
74 #BF_NSPR_LIB = 
75
76 # Uncomment the following line to use Mozilla inplace of netscape
77 #CPPFLAGS += -DMOZ_NOT_NET
78 # Location of MOZILLA/Netscape header files...
79 #BF_MOZILLA = $(LCGDIR)/mozilla
80 #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
81 #BF_MOZILLA_LIB =
82 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
83 # if this is not set.
84 #
85 # Be paranoid regarding library creation (do not update archives)
86 #BF_PARANOID = 'true'
87
88 # enable freetype2 support for text objects
89 WITH_BF_FREETYPE = 'true'
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_OPENGL = 'true'
100 BF_OPENGL = '/usr/X11R6'
101 BF_OPENGL_INC = BF_OPENGL + '/include'
102 BF_OPENGL_LIB = 'GL GLU Xmu Xext X11 Xi'
103 BF_OPENGL_LIB_STATIC = BF_OPENGL + '/lib/libGL.a ' + BF_OPENGL + '/lib/libGLU.a ' + BF_OPENGL + '/lib/libXmu.a ' + BF_OPENGL + '/lib/libXext.a ' + BF_OPENGL + '/lib/libX11.a ' + BF_OPENGL + '/lib/libXi.a'
104 ##
105 ##CC = gcc
106 ##CCC = g++
107 ##ifeq ($CPU),alpha)
108 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
109
110 CFLAGS = '-pipe -funsigned-char -fno-strict-aliasing'
111
112 CPPFLAGS = '-DXP_UNIX'
113 CCFLAGS = '-pipe -funsigned-char -fno-strict-aliasing'
114 REL_CFLAGS = '-O2'
115 REL_CCFLAGS = '-O2'
116 ##BF_DEPEND = 'true'
117 ##
118 ##AR = ar
119 ##ARFLAGS = ruv
120 ##ARFLAGSQUIET = ru
121 ##
122 C_WARN = '-Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wredundant-decls'
123
124 CC_WARN = '-Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wsynth'
125
126 ##FIX_STUBS_WARNINGS = -Wno-unused
127
128 LLIBS = 'util c m dl pthread stdc++'
129 ##LOPTS = --dynamic
130 ##DYNLDFLAGS = -shared $(LDFLAGS)
131
132 BF_BUILDDIR = '../build/linuxcross'
133 BF_INSTALLDIR='../install/linuxcross'