summaryrefslogtreecommitdiffstats
path: root/progs/samples/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-02-10 20:27:49 +0000
committerJosé Fonseca <[email protected]>2009-02-10 20:28:08 +0000
commit52233f27bb99d21a085117990936d9c355e4ce08 (patch)
treeb714c289b8bcfb89cf02c640c7c491556484b01c /progs/samples/SConscript
parentfa9fcf5e8fc1a1fbd25b0943050c51104acb0397 (diff)
progs: Build samples dir with scons and glew.
Diffstat (limited to 'progs/samples/SConscript')
-rw-r--r--progs/samples/SConscript58
1 files changed, 58 insertions, 0 deletions
diff --git a/progs/samples/SConscript b/progs/samples/SConscript
new file mode 100644
index 00000000000..7a8a0d62d81
--- /dev/null
+++ b/progs/samples/SConscript
@@ -0,0 +1,58 @@
+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 = [
+ 'accum',
+ 'bitmap1',
+ 'bitmap2',
+ 'blendeq',
+ 'blendxor',
+ 'copy',
+ 'cursor',
+ 'depth',
+ 'eval',
+ 'fog',
+ 'font',
+ 'line',
+ 'logo',
+ 'nurb',
+ #'oglinfo',
+ 'olympic',
+ 'overlay',
+ 'point',
+ 'prim',
+ 'quad',
+ 'rgbtoppm',
+ 'select',
+ 'shape',
+ 'sphere',
+ 'star',
+ 'stencil',
+ 'stretch',
+ 'texture',
+ 'tri',
+ 'wave',
+]
+
+for prog in progs:
+ env.Program(
+ target = prog,
+ source = prog + '.c',
+ )