==SCons==
[blender.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 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 = BF_GETTEXT + '/lib/libintl.a'
49
50 WITH_BF_FTGL = 'true'
51 BF_FTGL = '#extern/bFTGL'
52 BF_FTGL_INC = BF_FTGL + '/include'
53 BF_FTGL_LIB = 'extern_ftgl'
54
55
56 WITH_BF_ODE = 'false'
57 BF_ODE = LCGDIR + '/ode'
58 BF_ODE_INC = BF_ODE + '/include'
59 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
60
61 WITH_BF_BULLET = 'true'
62 BF_BULLET = '#extern/bullet'
63 BF_BULLET_INC = BF_BULLET + '/LinearMath ' + BF_BULLET + '/BulletDynamics ' + BF_BULLET + '/Bullet'
64 BF_BULLET_LIB = 'extern_bullet'
65
66 BF_SOLID = '#extern/solid'
67 BF_SOLID_INC = BF_SOLID + '/include ' + BF_SOLID
68 BF_SOLID_LIB = 'extern_solid'
69
70 #WITH_BF_NSPR = 'true'
71 #BF_NSPR = $(LCGDIR)/nspr
72 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
73 #BF_NSPR_LIB = 
74
75 # Uncomment the following line to use Mozilla inplace of netscape
76 #CPPFLAGS += -DMOZ_NOT_NET
77 # Location of MOZILLA/Netscape header files...
78 #BF_MOZILLA = $(LCGDIR)/mozilla
79 #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
80 #BF_MOZILLA_LIB =
81 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
82 # if this is not set.
83 #
84 # Be paranoid regarding library creation (do not update archives)
85 #BF_PARANOID = 'true'
86
87 # enable freetype2 support for text objects
88 BF_FREETYPE = '/usr'
89 BF_FREETYPE_INC = BF_FREETYPE + '/include ' + BF_FREETYPE + '/include/freetype2'
90 BF_FREETYPE_LIB = 'freetype'
91
92 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
93 BF_QUICKTIME = '/usr/local'
94 BF_QUICKTIME_INC = BF_QUICKTIME + '/include' 
95
96 # Mesa Libs should go here if your using them as well....
97 WITH_BF_STATICOPENGL = 'true'
98 BF_OPENGL = '/usr/X11R6'
99 BF_OPENGL_INC = BF_OPENGL + '/include'
100 BF_OPENGL_LIB = 'GL GLU Xmu Xext X11 Xi'
101 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'
102 ##
103 ##CC = gcc
104 ##CCC = g++
105 ##ifeq ($CPU),alpha)
106 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
107
108 CFLAGS = '-pipe -funsigned-char -fno-strict-aliasing'
109
110 CPPFLAGS = '-DXP_UNIX'
111 CCFLAGS = '-pipe -funsigned-char -fno-strict-aliasing'
112 REL_CFLAGS = '-O2'
113 REL_CCFLAGS = '-O2'
114 ##BF_DEPEND = 'true'
115 ##
116 ##AR = ar
117 ##ARFLAGS = ruv
118 ##ARFLAGSQUIET = ru
119 ##
120 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'
121
122 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'
123
124 ##FIX_STUBS_WARNINGS = -Wno-unused
125
126 LLIBS = 'util c m dl pthread stdc++'
127 ##LOPTS = --dynamic
128 ##DYNLDFLAGS = -shared $(LDFLAGS)
129
130 BF_BUILDDIR = '../build/linuxcross'
131 BF_INSTALLDIR='../install/linuxcross'