llvmpipe: implement the new can_create_resource() function
[mesa.git] / src / gallium / drivers / llvmpipe / SConscript
index 26b258b956957cac81a0f71788980928461f4850..cea44a786797bf0aee104a8e1f0d08c111cb8264 100644 (file)
@@ -32,6 +32,7 @@ llvmpipe = env.ConvenienceLibrary(
        target = 'llvmpipe',
        source = [
                'lp_bld_alpha.c',
+               'lp_bld_blend.c',
                'lp_bld_blend_aos.c',
                'lp_bld_blend_logicop.c',
                'lp_bld_blend_soa.c',
@@ -79,7 +80,7 @@ llvmpipe = env.ConvenienceLibrary(
 env.Alias('llvmpipe', llvmpipe)
 
 
-if env['platform'] != 'embedded':
+if not env['embedded']:
     env = env.Clone()
 
     env.Prepend(LIBS = [llvmpipe] + gallium)
@@ -88,18 +89,22 @@ if env['platform'] != 'embedded':
         'format',
         'blend',
         'conv',
-       'printf',
-       'sincos',
+        'printf',
     ]
 
     if not env['msvc']:
-        tests.append('round')
+        tests.append('arit')
 
     for test in tests:
+        testname = 'lp_test_' + test
         target = env.Program(
-            target = 'lp_test_' + test,
-            source = ['lp_test_' + test + '.c', 'lp_test_main.c'],
+            target = testname,
+            source = [testname + '.c', 'lp_test_main.c'],
         )
         env.InstallProgram(target)
+        
+        # http://www.scons.org/wiki/UnitTests
+        alias = env.Alias(testname, [target], target[0].abspath)
+        AlwaysBuild(alias)
 
 Export('llvmpipe')