7 toolpath
= ['../scons'],
12 # Use Mesa's headers and libs
14 build_topdir
= 'build'
15 build_subdir
= env
['platform']
16 if env
['machine'] != 'generic':
17 build_subdir
+= '-' + env
['machine']
19 build_subdir
+= "-debug"
21 build_subdir
+= "-profile"
22 build_dir
= os
.path
.join(build_topdir
, build_subdir
)
24 env
.Append(CPPDEFINES
= ['GLEW_STATIC'])
25 env
.Append(CPPPATH
= ['#../include'])
26 env
.Append(LIBPATH
= [
27 '#../' + build_dir
+ '/glew/',
28 '#../' + build_dir
+ '/glut/glx',
35 if env
['platform'] == 'windows':
36 env
.Prepend(LIBS
= ['glu32', 'opengl32'])
38 env
.Prepend(LIBS
= ['GLU', 'GL'])
42 if conf
.CheckCHeader('GL/glut.h'):
43 if env
['platform'] == 'windows':
44 env
['GLUT_LIB'] = 'glut32'
46 env
['GLUT_LIB'] = 'glut'
51 if conf
.CheckCHeader('GL/glew.h'):
52 env
['GLEW_LIB'] = 'glew'
54 env
.Prepend(LIBS
= ['glew'])
63 build_dir
= env
['build'],
64 duplicate
= 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html