summaryrefslogtreecommitdiff
path: root/progs/glsl/SConscript
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-06-29 14:13:58 +0100
committerKeith Whitwell <keithw@vmware.com>2009-06-29 14:15:08 +0100
commitb799af91d5ffbee1481161fec29eb4c92b161272 (patch)
treea34b7f252be93bfb2b71fc226abfecd44b3fb9a4 /progs/glsl/SConscript
parent9a5ee124347d3f75be2e957142143338dd96abe3 (diff)
progs/glsl: compile with scons and glew
Get most of these working with scons.
Diffstat (limited to 'progs/glsl/SConscript')
-rw-r--r--progs/glsl/SConscript55
1 files changed, 55 insertions, 0 deletions
diff --git a/progs/glsl/SConscript b/progs/glsl/SConscript
new file mode 100644
index 0000000000..7a4549cd70
--- /dev/null
+++ b/progs/glsl/SConscript
@@ -0,0 +1,55 @@
+Import('*')
+
+if not env['GLUT']:
+ Return()
+
+env = env.Clone()
+
+env.Prepend(CPPPATH = [
+ '../util',
+])
+
+env.Prepend(LIBS = [
+ util,
+ '$GLUT_LIB'
+])
+
+if env['platform'] == 'windows':
+ env.Append(CPPDEFINES = ['NOMINMAX'])
+ env.Prepend(LIBS = ['winmm'])
+
+progs = [
+ 'array',
+ 'bitmap',
+ 'brick',
+ 'bump',
+ 'convolutions',
+ 'deriv',
+ 'fragcoord',
+ 'identity',
+ 'linktest',
+ 'mandelbrot',
+ 'multinoise',
+ 'multitex',
+ 'noise',
+ 'noise2',
+ 'pointcoord',
+ 'points',
+ 'samplers',
+ 'shadow_sampler',
+ 'skinning',
+ 'texaaline',
+ 'texdemo1',
+ 'toyball',
+ 'trirast',
+ 'twoside',
+ 'vert-or-frag-only',
+ 'vert-tex',
+]
+
+for prog in progs:
+ env.Program(
+ target = prog,
+ source = prog + '.c',
+ )
+