• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from sys import executable as python_cmd
2import distutils.version
3
4Import('*')
5
6if not env['llvm']:
7    print 'warning: LLVM disabled: not building llvmpipe'
8    Return()
9
10env = env.Clone()
11
12env.MSVC2013Compat()
13
14llvmpipe = env.ConvenienceLibrary(
15	target = 'llvmpipe',
16	source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
17	)
18
19env.Alias('llvmpipe', llvmpipe)
20
21
22if not env['embedded']:
23    env = env.Clone()
24
25    env.Prepend(LIBS = [llvmpipe, gallium, mesautil])
26
27    tests = [
28        'arit',
29        'format',
30        'blend',
31        'conv',
32        'printf',
33    ]
34
35    for test in tests:
36        testname = 'lp_test_' + test
37        target = env.Program(
38            target = testname,
39            source = [testname + '.c', 'lp_test_main.c'],
40        )
41        env.UnitTest(testname, target)
42
43Export('llvmpipe')
44