diff options
author | José Fonseca <[email protected]> | 2009-01-23 12:32:35 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-01-23 12:32:35 +0000 |
commit | 57d00016cab9afa3e7853d9830044a8ece9541c4 (patch) | |
tree | 709a625b94741a2702b9db6534627af2cb7cc590 /src/glew/SConscript | |
parent | d150e6a2e677a49813fdd5422b14ebdc59a904e9 (diff) |
glew: Initial import.
From glew 1.5.1 release.
Diffstat (limited to 'src/glew/SConscript')
-rw-r--r-- | src/glew/SConscript | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/glew/SConscript b/src/glew/SConscript new file mode 100644 index 00000000000..1161be6e633 --- /dev/null +++ b/src/glew/SConscript @@ -0,0 +1,50 @@ +Import('*') + +if env['platform'] not in ['windows', 'linux']: + Return() + +env = env.Clone() + +env.Append(CPPDEFINES = [ + 'GLEW_BUILD', + 'GLEW_STATIC', + #'GLEW_MX', # Multiple Rendering Contexts support +]) + +env.PrependUnique(CPPPATH = [ + '#/include', +]) + +glew = env.StaticLibrary( + target = 'glew', + source = [ + 'glew.c', + ], +) + +env = env.Clone() + +if env['platform'] == 'windows': + env.PrependUnique(LIBS = [ + 'glu32', + 'opengl32', + 'gdi32', + 'user32', + ]) +else: + env.PrependUnique(LIBS = [ + 'GLU', + 'GL', + 'X11', + ]) +env.Prepend(LIBS = [glew]) + +env.Program( + target = 'glewinfo', + source = ['glewinfo.c'], +) + +env.Program( + target = 'visualinfo', + source = ['visualinfo.c'], +) |