llvmpipe: Disable unit tests on embedded platforms.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 4 Feb 2010 14:36:10 +0000 (14:36 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 4 Feb 2010 14:39:30 +0000 (14:39 +0000)
src/gallium/drivers/llvmpipe/SConscript

index 6bb545a501f8f1c11c41ad057e854469f8cb3691..563220f17fef1c2ca7333d8c4f353f93f0020b2c 100644 (file)
@@ -73,21 +73,22 @@ llvmpipe = env.ConvenienceLibrary(
        ])
 
 
-env = env.Clone()
+if env['platform'] != 'embedded':
+    env = env.Clone()
 
-env.Prepend(LIBS = [llvmpipe] + gallium)
+    env.Prepend(LIBS = [llvmpipe] + gallium)
 
-tests = [
-    'format',
-    'blend',
-    'conv',
-]
+    tests = [
+        'format',
+        'blend',
+        'conv',
+    ]
 
-for test in tests:
-    target = env.Program(
-        target = 'lp_test_' + test,
-        source = ['lp_test_' + test + '.c', 'lp_test_main.c'],
-    )
-    env.InstallProgram(target)
+    for test in tests:
+        target = env.Program(
+            target = 'lp_test_' + test,
+            source = ['lp_test_' + test + '.c', 'lp_test_main.c'],
+        )
+        env.InstallProgram(target)
 
-Export('llvmpipe')
+    Export('llvmpipe')