2010-06-15 18:07:52 -06:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
Import('env')
|
2011-01-27 17:53:30 -07:00
|
|
|
import sys
|
2010-06-15 18:07:52 -06:00
|
|
|
|
2010-08-01 10:30:22 -06:00
|
|
|
if env.has_key('shared_glew') and env['shared_glew']:
|
|
|
|
Return()
|
|
|
|
|
2011-01-27 17:53:30 -07:00
|
|
|
if sys.platform == 'darwin':
|
2011-02-03 17:46:56 -07:00
|
|
|
libs = []
|
2011-01-27 17:53:30 -07:00
|
|
|
frames = ['AGL', 'OpenGL']
|
|
|
|
else:
|
2011-02-03 17:46:56 -07:00
|
|
|
libs = ['GL', 'GLU']
|
2011-01-27 17:53:30 -07:00
|
|
|
frames = []
|
2010-06-15 18:07:52 -06:00
|
|
|
|
2011-03-02 21:35:03 -07:00
|
|
|
glew = env.StaticLibrary('GLEW', 'src/glew.c')
|
2011-02-03 17:46:56 -07:00
|
|
|
libs += glew
|
2011-01-27 17:53:30 -07:00
|
|
|
env.Program('glewinfo', 'src/glewinfo.c', LIBS = libs, FRAMEWORKS = frames)
|
|
|
|
env.Program('visualinfo', 'src/visualinfo.c', LIBS = libs, FRAMEWORKS = frames)
|
2010-08-01 10:30:22 -06:00
|
|
|
env['CPPPATH'] += ['#Externals/GLew/include']
|
2011-02-03 17:46:56 -07:00
|
|
|
env['LIBS'] += glew
|