[g3dvl] move stuff from flush into own functions
[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.Tool('udis86')
13
14 env.Append(CPPPATH = ['.'])
15
16 env.CodeGenerate(
17 target = 'lp_tile_soa.c',
18 script = 'lp_tile_soa.py',
19 source = ['#src/gallium/auxiliary/util/u_format.csv'],
20 command = python_cmd + ' $SCRIPT $SOURCE > $TARGET'
21 )
22
23 # XXX: Our dependency scanner only finds depended modules in relative dirs.
24 env.Depends('lp_tile_soa.c', [
25 '#src/gallium/auxiliary/util/u_format_parse.py',
26 '#src/gallium/auxiliary/util/u_format_pack.py',
27 ])
28
29
30 lp_tile_soa_os = env.SharedObject('lp_tile_soa.c')
31
32
33 llvmpipe = env.ConvenienceLibrary(
34 target = 'llvmpipe',
35 source = [
36 'lp_bld_alpha.c',
37 'lp_bld_blend_aos.c',
38 'lp_bld_blend_logicop.c',
39 'lp_bld_blend_soa.c',
40 'lp_bld_depth.c',
41 'lp_bld_interp.c',
42 'lp_clear.c',
43 'lp_context.c',
44 'lp_draw_arrays.c',
45 'lp_fence.c',
46 'lp_flush.c',
47 'lp_jit.c',
48 'lp_memory.c',
49 'lp_perf.c',
50 'lp_query.c',
51 'lp_rast.c',
52 'lp_rast_debug.c',
53 'lp_rast_tri.c',
54 'lp_scene.c',
55 'lp_scene_queue.c',
56 'lp_screen.c',
57 'lp_setup.c',
58 'lp_setup_line.c',
59 'lp_setup_point.c',
60 'lp_setup_tri.c',
61 'lp_setup_vbuf.c',
62 'lp_state_blend.c',
63 'lp_state_clip.c',
64 'lp_state_derived.c',
65 'lp_state_fs.c',
66 'lp_state_setup.c',
67 'lp_state_gs.c',
68 'lp_state_rasterizer.c',
69 'lp_state_sampler.c',
70 'lp_state_so.c',
71 'lp_state_surface.c',
72 'lp_state_vertex.c',
73 'lp_state_vs.c',
74 'lp_surface.c',
75 'lp_tex_sample.c',
76 'lp_texture.c',
77 'lp_tile_image.c',
78 lp_tile_soa_os,
79 ])
80
81
82 if env['platform'] != 'embedded':
83 env = env.Clone()
84
85 env.Prepend(LIBS = [llvmpipe] + gallium)
86
87 tests = [
88 'format',
89 'blend',
90 'conv',
91 'printf',
92 'sincos',
93 ]
94
95 if not msvc:
96 tests.append('round')
97
98 for test in tests:
99 target = env.Program(
100 target = 'lp_test_' + test,
101 source = ['lp_test_' + test + '.c', 'lp_test_main.c'],
102 )
103 env.InstallProgram(target)
104
105 Export('llvmpipe')