summaryrefslogtreecommitdiff
path: root/progs/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-27 20:28:16 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-27 20:29:14 +0000
commit5b3c0c151b2d9b109935d47c1cd108b4d1f1ae64 (patch)
tree5b82d944efd2fdb48b81af35d0dcb826e0b1e023 /progs/SConscript
parent74f94e8fdfe035fa68acdc19e6b0afc2957a4264 (diff)
progs/gallium: Add unit tests for pixel format packing/unpacking.
Diffstat (limited to 'progs/SConscript')
-rw-r--r--progs/SConscript81
1 files changed, 43 insertions, 38 deletions
diff --git a/progs/SConscript b/progs/SConscript
index 2ec95a282e..aa6640cf7a 100644
--- a/progs/SConscript
+++ b/progs/SConscript
@@ -1,8 +1,13 @@
+Import('*')
+
+if env['platform'] == 'embedded':
+ Return()
+
SConscript([
'util/SConscript',
])
-Import('*')
+Import('util')
progs_env = env.Clone()
@@ -15,40 +20,40 @@ if progs_env['platform'] == 'windows':
'gdi32',
])
-if platform != 'embedded':
- # OpenGL
- if progs_env['platform'] == 'windows':
- progs_env.Prepend(LIBS = ['glu32', 'opengl32'])
- else:
- progs_env.Prepend(LIBS = ['GLU', 'GL'])
-
- # Glut
- progs_env.Prepend(LIBPATH = [glut.dir])
- progs_env.Prepend(LIBS = [glut.name])
-
- # GLEW
- progs_env.Prepend(LIBS = [glew])
-
- progs_env.Prepend(CPPPATH = [
- '#progs/util',
- ])
-
- progs_env.Prepend(LIBS = [
- util,
- ])
-
- Export('progs_env')
-
- SConscript([
- 'demos/SConscript',
- 'glsl/SConscript',
- 'redbook/SConscript',
- 'samples/SConscript',
- 'tests/SConscript',
- 'trivial/SConscript',
- 'vp/SConscript',
- 'vpglsl/SConscript',
- 'fp/SConscript',
- 'wgl/SConscript',
- 'perf/SConscript',
- ])
+# OpenGL
+if progs_env['platform'] == 'windows':
+ progs_env.Prepend(LIBS = ['glu32', 'opengl32'])
+else:
+ progs_env.Prepend(LIBS = ['GLU', 'GL'])
+
+# Glut
+progs_env.Prepend(LIBPATH = [glut.dir])
+progs_env.Prepend(LIBS = [glut.name])
+
+# GLEW
+progs_env.Prepend(LIBS = [glew])
+
+progs_env.Prepend(CPPPATH = [
+ '#progs/util',
+])
+
+progs_env.Prepend(LIBS = [
+ util,
+])
+
+Export('progs_env')
+
+SConscript([
+ 'demos/SConscript',
+ 'glsl/SConscript',
+ 'redbook/SConscript',
+ 'samples/SConscript',
+ 'tests/SConscript',
+ 'trivial/SConscript',
+ 'vp/SConscript',
+ 'vpglsl/SConscript',
+ 'fp/SConscript',
+ 'wgl/SConscript',
+ 'perf/SConscript',
+ 'gallium/unit/SConscript',
+])