util: Put the format pack/unpack functions in the description table.
[mesa.git] / src / gallium / auxiliary / SConscript
1 Import('*')
2
3 from sys import executable as python_cmd
4
5 env.Append(CPPPATH = [
6 'indices',
7 'util',
8 ])
9
10 env.Tool('udis86')
11
12 env.CodeGenerate(
13 target = 'indices/u_indices_gen.c',
14 script = 'indices/u_indices_gen.py',
15 source = [],
16 command = python_cmd + ' $SCRIPT > $TARGET'
17 )
18
19 env.CodeGenerate(
20 target = 'indices/u_unfilled_gen.c',
21 script = 'indices/u_unfilled_gen.py',
22 source = [],
23 command = python_cmd + ' $SCRIPT > $TARGET'
24 )
25
26 env.CodeGenerate(
27 target = 'util/u_format_table.c',
28 script = 'util/u_format_table.py',
29 source = ['util/u_format.csv'],
30 command = 'python $SCRIPT $SOURCE > $TARGET'
31 )
32
33 env.CodeGenerate(
34 target = 'util/u_format_access.c',
35 script = 'util/u_format_access.py',
36 source = ['util/u_format.csv'],
37 command = 'python $SCRIPT $SOURCE > $TARGET'
38 )
39
40 source = [
41 'cso_cache/cso_context.c',
42 'cso_cache/cso_cache.c',
43 'cso_cache/cso_hash.c',
44 'draw/draw_context.c',
45 'draw/draw_pipe.c',
46 'draw/draw_pipe_aaline.c',
47 'draw/draw_pipe_aapoint.c',
48 'draw/draw_pipe_clip.c',
49 'draw/draw_pipe_cull.c',
50 'draw/draw_pipe_flatshade.c',
51 'draw/draw_pipe_offset.c',
52 'draw/draw_pipe_pstipple.c',
53 'draw/draw_pipe_stipple.c',
54 'draw/draw_pipe_twoside.c',
55 'draw/draw_pipe_unfilled.c',
56 'draw/draw_pipe_util.c',
57 'draw/draw_pipe_validate.c',
58 'draw/draw_pipe_vbuf.c',
59 'draw/draw_pipe_wide_line.c',
60 'draw/draw_pipe_wide_point.c',
61 'draw/draw_pt.c',
62 'draw/draw_pt_elts.c',
63 'draw/draw_pt_emit.c',
64 'draw/draw_pt_fetch.c',
65 'draw/draw_pt_fetch_emit.c',
66 'draw/draw_pt_fetch_shade_emit.c',
67 'draw/draw_pt_fetch_shade_pipeline.c',
68 'draw/draw_pt_post_vs.c',
69 'draw/draw_pt_util.c',
70 'draw/draw_pt_varray.c',
71 'draw/draw_pt_vcache.c',
72 'draw/draw_vertex.c',
73 'draw/draw_vs.c',
74 'draw/draw_vs_aos.c',
75 'draw/draw_vs_aos_io.c',
76 'draw/draw_vs_aos_machine.c',
77 'draw/draw_vs_exec.c',
78 'draw/draw_vs_llvm.c',
79 'draw/draw_vs_ppc.c',
80 'draw/draw_vs_sse.c',
81 'draw/draw_vs_varient.c',
82 'draw/draw_gs.c',
83 #'indices/u_indices.c',
84 #'indices/u_unfilled_indices.c',
85 'indices/u_indices_gen.c',
86 'indices/u_unfilled_gen.c',
87 'os/os_misc.c',
88 'os/os_stream_log.c',
89 'os/os_stream_stdc.c',
90 'os/os_stream_str.c',
91 'os/os_stream_null.c',
92 'os/os_time.c',
93 'pipebuffer/pb_buffer_fenced.c',
94 'pipebuffer/pb_buffer_malloc.c',
95 'pipebuffer/pb_bufmgr_alt.c',
96 'pipebuffer/pb_bufmgr_cache.c',
97 'pipebuffer/pb_bufmgr_debug.c',
98 'pipebuffer/pb_bufmgr_mm.c',
99 'pipebuffer/pb_bufmgr_ondemand.c',
100 'pipebuffer/pb_bufmgr_pool.c',
101 'pipebuffer/pb_bufmgr_slab.c',
102 'pipebuffer/pb_validate.c',
103 'rbug/rbug_core.c',
104 'rbug/rbug_shader.c',
105 'rbug/rbug_context.c',
106 'rbug/rbug_texture.c',
107 'rbug/rbug_demarshal.c',
108 'rbug/rbug_connection.c',
109 'rtasm/rtasm_cpu.c',
110 'rtasm/rtasm_execmem.c',
111 'rtasm/rtasm_x86sse.c',
112 'rtasm/rtasm_ppc.c',
113 'rtasm/rtasm_ppc_spe.c',
114 'tgsi/tgsi_build.c',
115 'tgsi/tgsi_dump.c',
116 'tgsi/tgsi_exec.c',
117 'tgsi/tgsi_info.c',
118 'tgsi/tgsi_iterate.c',
119 'tgsi/tgsi_parse.c',
120 'tgsi/tgsi_sanity.c',
121 'tgsi/tgsi_scan.c',
122 'tgsi/tgsi_ppc.c',
123 'tgsi/tgsi_sse2.c',
124 'tgsi/tgsi_text.c',
125 'tgsi/tgsi_transform.c',
126 'tgsi/tgsi_ureg.c',
127 'tgsi/tgsi_util.c',
128 'translate/translate_generic.c',
129 'translate/translate_sse.c',
130 'translate/translate.c',
131 'translate/translate_cache.c',
132 'util/u_bitmask.c',
133 'util/u_blit.c',
134 'util/u_blitter.c',
135 'util/u_cache.c',
136 'util/u_cpu_detect.c',
137 'util/u_debug.c',
138 'util/u_debug_memory.c',
139 'util/u_debug_stack.c',
140 'util/u_debug_symbol.c',
141 'util/u_dump_defines.c',
142 'util/u_dump_state.c',
143 'util/u_dl.c',
144 'util/u_draw_quad.c',
145 'util/u_format_access.c',
146 'util/u_format_table.c',
147 'util/u_format_tests.c',
148 'util/u_gen_mipmap.c',
149 'util/u_handle_table.c',
150 'util/u_hash.c',
151 'util/u_hash_table.c',
152 'util/u_keymap.c',
153 'util/u_network.c',
154 'util/u_math.c',
155 'util/u_mm.c',
156 'util/u_rect.c',
157 'util/u_ringbuffer.c',
158 'util/u_sampler.c',
159 'util/u_simple_shaders.c',
160 'util/u_snprintf.c',
161 'util/u_surface.c',
162 'util/u_texture.c',
163 'util/u_tile.c',
164 'util/u_timed_winsys.c',
165 'util/u_upload_mgr.c',
166 'util/u_simple_screen.c',
167 # Disabling until pipe-video branch gets merged in
168 #'vl/vl_bitstream_parser.c',
169 #'vl/vl_mpeg12_mc_renderer.c',
170 #'vl/vl_compositor.c',
171 #'vl/vl_csc.c',
172 #'vl/vl_shader_build.c',
173 'target-helpers/wrap_screen.c',
174 ]
175
176 if drawllvm:
177 source += [
178 'gallivm/lp_bld_alpha.c',
179 'gallivm/lp_bld_arit.c',
180 'gallivm/lp_bld_blend_aos.c',
181 'gallivm/lp_bld_blend_logicop.c',
182 'gallivm/lp_bld_blend_soa.c',
183 'gallivm/lp_bld_const.c',
184 'gallivm/lp_bld_conv.c',
185 'gallivm/lp_bld_debug.c',
186 'gallivm/lp_bld_depth.c',
187 'gallivm/lp_bld_flow.c',
188 'gallivm/lp_bld_format_soa.c',
189 'gallivm/lp_bld_interp.c',
190 'gallivm/lp_bld_intr.c',
191 'gallivm/lp_bld_logic.c',
192 'gallivm/lp_bld_init.cpp',
193 'gallivm/lp_bld_pack.c',
194 'gallivm/lp_bld_printf.c',
195 'gallivm/lp_bld_sample.c',
196 'gallivm/lp_bld_sample_soa.c',
197 'gallivm/lp_bld_struct.c',
198 'gallivm/lp_bld_swizzle.c',
199 'gallivm/lp_bld_tgsi_soa.c',
200 'gallivm/lp_bld_type.c',
201 ]
202
203 gallium = env.ConvenienceLibrary(
204 target = 'gallium',
205 source = source,
206 )
207
208 Export('gallium')