summaryrefslogtreecommitdiff
path: root/Externals/GLew/SConscript
blob: 16bede105fb195d304a2c84e65a6671fe623634f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- python -*-

Import('env')
import sys

if env.has_key('shared_glew') and env['shared_glew']:
	Return()

if sys.platform == 'darwin':
	libs = []
	frames = ['AGL', 'OpenGL']
else:
	libs = ['GL', 'GLU']
	frames = []

glew = env.StaticLibrary('GLEW', '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