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