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',
env.Alias('llvmpipe', llvmpipe)
-if env['platform'] != 'embedded':
+if not env['embedded']:
env = env.Clone()
env.Prepend(LIBS = [llvmpipe] + gallium)
'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')