dolphin/Externals/GLew/SConscript

23 lines
515 B
Python
Raw Normal View History

# -*- python -*-
Import('env')
import sys
if env.has_key('shared_glew') and env['shared_glew']:
env['LIBS'] += 'GLEW'
Return()
if sys.platform == 'darwin':
libs = []
frames = ['AGL', 'OpenGL']
else:
libs = ['GL', 'GLU']
frames = []
glew = env.StaticObject('src/glew.c')
libs += glew
env.Program('glewinfo', 'src/glewinfo.c', LIBS = libs, FRAMEWORKS = frames)
env.Program('visualinfo', 'src/visualinfo.c', LIBS = libs, FRAMEWORKS = frames)
env['CPPPATH'] += ['#Externals/GLew/include']
env['LIBS'] += glew