c475b221e5b44c095bdc2d246afb2b067abef237
[blender.git] / config / linux2-config.py
1 LCGDIR = '../lib/linux2'
2 LIBDIR = "${LCGDIR}"
3
4 BF_VERSE = "#extern/verse/dist"
5 BF_VERSE_LIBPATH = "${BF_BUILDDIR}/extern/verse/dist"
6 BF_VERSE_INCLUDE = BF_VERSE
7 BF_VERSE_LIBS = "libverse"
8
9 BF_PYTHON = '/usr'
10 BF_PYTHON_VERSION = '2.4'
11 BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
12 BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
13 BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
14 BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
15
16 WITH_BF_OPENAL = 'true'
17 BF_OPENAL = '/usr'
18 BF_OPENAL_INC = '${BF_OPENAL}/include'
19 BF_OPENAL_LIB = 'openal'
20
21 WITH_BF_SDL = 'true'
22 BF_SDL = '/usr' #$(shell sdl-config --prefix)
23 BF_SDL_INC = '${BF_SDL}/include/SDL' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
24 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
25
26 WITH_BF_FMOD = 'false'
27 BF_FMOD = LIBDIR + '/fmod'
28
29 WITH_BF_OPENEXR = 'true'
30 BF_OPENEXR = '/usr'
31 BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
32 BF_OPENEXR_LIB = 'Half IlmImf Iex Imath '
33
34 WITH_BF_JPEG = 'true'
35 BF_JPEG = '/usr'
36 BF_JPEG_INC = '${BF_JPEG}/include'
37 BF_JPEG_LIB = 'jpeg'
38
39 WITH_BF_PNG = 'true'
40 BF_PNG = '/usr'
41 BF_PNG_INC = '${BF_PNG}/include'
42 BF_PNG_LIB = 'png'
43
44 BF_TIFF = '/usr'
45 BF_TIFF_INC = '${BF_TIFF}/include'
46
47 WITH_BF_ZLIB = 'true'
48 BF_ZLIB = '/usr'
49 BF_ZLIB_INC = '${BF_ZLIB}/include'
50 BF_ZLIB_LIB = 'z'
51
52 WITH_BF_INTERNATIONAL = 'true'
53
54 BF_GETTEXT = '/usr'
55 BF_GETTEXT_INC = '${BF_GETTEXT}/include'
56 BF_GETTEXT_LIB = 'gettextlib'
57 BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
58
59 WITH_BF_FTGL = 'true'
60 BF_FTGL = '#extern/bFTGL'
61 BF_FTGL_INC = '${BF_FTGL}/include'
62 BF_FTGL_LIB = 'extern_ftgl'
63
64 WITH_BF_GAMEENGINE='true'
65
66 WITH_BF_ODE = 'false'
67 BF_ODE = LIBDIR + '/ode'
68 BF_ODE_INC = BF_ODE + '/include'
69 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
70
71 WITH_BF_BULLET = 'true'
72 BF_BULLET = '#extern/bullet'
73 BF_BULLET_INC = '${BF_BULLET}/LinearMath ${BF_BULLET}/BulletDynamics ${BF_BULLET}/Bullet'
74 BF_BULLET_LIB = 'extern_bullet'
75
76 BF_SOLID = '#extern/solid'
77 BF_SOLID_INC = '${BF_SOLID}'
78 BF_SOLID_LIB = 'extern_solid'
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 # enable ffmpeg  support
107 WITH_BF_FFMPEG = 'false'  # -DWITH_FFMPEG
108 BF_FFMPEG = '/usr'
109 BF_FFMPEG_INC = '${BF_FFMPEG}/include'
110 BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
111 BF_FFMPEG_LIB = 'avformat avcodec avutil'
112
113 # Mesa Libs should go here if your using them as well....
114 WITH_BF_STATICOPENGL = 'false'
115 BF_OPENGL = '/usr'
116 BF_OPENGL_INC = '${BF_OPENGL}/include'
117 BF_OPENGL_LIB = 'GL GLU X11 Xi'
118 BF_OPENGL_LIBPATH = '/usr/X11R6/lib'
119 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'
120
121 ##
122 CC = 'gcc'
123 CXX = 'g++'
124 ##ifeq ($CPU),alpha)
125 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
126
127 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
128
129 CPPFLAGS = ['-DXP_UNIX']
130 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
131 REL_CFLAGS = ['-O2']
132 REL_CCFLAGS = ['-O2']
133 ##BF_DEPEND = 'true'
134 ##
135 ##AR = ar
136 ##ARFLAGS = ruv
137 ##ARFLAGSQUIET = ru
138 ##
139 C_WARN = '-Wall -Wno-char-subscripts'
140
141 CC_WARN = '-Wall'
142
143 ##FIX_STUBS_WARNINGS = -Wno-unused
144
145 LLIBS = 'util c m dl pthread stdc++'
146 ##LOPTS = --dynamic
147 ##DYNLDFLAGS = -shared $(LDFLAGS)
148
149 BF_PROFILE_FLAGS = ['-pg','-g']
150 BF_PROFILE = 'false'
151
152 BF_DEBUG = 'false'
153 BF_DEBUG_FLAGS = '-g'
154
155 BF_BUILDDIR = '../build/linux2'
156 BF_INSTALLDIR='../install/linux2'
157
158
159 #Link against pthread
160 PLATFORM_LINKFLAGS = ['-pthread']