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