draw: add support for num_samples + sample_stride to the image paths
[mesa.git] / src / gallium / drivers / llvmpipe / SConscript
1 from sys import executable as python_cmd
2 import distutils.version
3
4 Import('*')
5
6 if not env['llvm']:
7 print('warning: LLVM disabled: not building llvmpipe')
8 Return()
9
10 env = env.Clone()
11
12 env.MSVC2013Compat()
13
14 llvmpipe = env.ConvenienceLibrary(
15 target = 'llvmpipe',
16 source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
17 )
18
19 env.Alias('llvmpipe', llvmpipe)
20
21 env.Append(CPPPATH = [
22 '../../../compiler/nir',
23 ])
24
25 if not env['embedded']:
26 env = env.Clone()
27
28 env.Prepend(LIBS = [llvmpipe, gallium, mesautil])
29
30 tests = [
31 'arit',
32 'format',
33 'blend',
34 'conv',
35 'printf',
36 ]
37
38 for test in tests:
39 testname = 'lp_test_' + test
40 target = env.Program(
41 target = testname,
42 source = [testname + '.c', 'lp_test_main.c'],
43 )
44 env.UnitTest(testname, target)
45
46 Export('llvmpipe')