aboutsummaryrefslogtreecommitdiffstats
path: root/src/glew/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-23 12:32:35 +0000
committerJosé Fonseca <[email protected]>2009-01-23 12:32:35 +0000
commit57d00016cab9afa3e7853d9830044a8ece9541c4 (patch)
tree709a625b94741a2702b9db6534627af2cb7cc590 /src/glew/SConscript
parentd150e6a2e677a49813fdd5422b14ebdc59a904e9 (diff)
glew: Initial import.
From glew 1.5.1 release.
Diffstat (limited to 'src/glew/SConscript')
-rw-r--r--src/glew/SConscript50
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'],
+)