glsl: fix crash in loop analysis when some controls can't be determined
[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.CodeGenerate(
11 target = 'indices/u_indices_gen.c',
12 script = 'indices/u_indices_gen.py',
13 source = [],
14 command = python_cmd + ' $SCRIPT > $TARGET'
15 )
16
17 env.CodeGenerate(
18 target = 'indices/u_unfilled_gen.c',
19 script = 'indices/u_unfilled_gen.py',
20 source = [],
21 command = python_cmd + ' $SCRIPT > $TARGET'
22 )
23
24 env.CodeGenerate(
25 target = 'util/u_format_srgb.c',
26 script = 'util/u_format_srgb.py',
27 source = [],
28 command = python_cmd + ' $SCRIPT > $TARGET'
29 )
30
31 env.CodeGenerate(
32 target = 'util/u_format_table.c',
33 script = '#src/gallium/auxiliary/util/u_format_table.py',
34 source = ['#src/gallium/auxiliary/util/u_format.csv'],
35 command = python_cmd + ' $SCRIPT $SOURCE > $TARGET'
36 )
37
38 env.CodeGenerate(
39 target = 'util/u_half.c',
40 script = 'util/u_half.py',
41 source = [],
42 command = python_cmd + ' $SCRIPT > $TARGET'
43 )
44
45 env.Depends('util/u_format_table.c', [
46 '#src/gallium/auxiliary/util/u_format_parse.py',
47 'util/u_format_pack.py',
48 ])
49
50 source = [
51 'cso_cache/cso_cache.c',
52 'cso_cache/cso_context.c',
53 'cso_cache/cso_hash.c',
54 'draw/draw_context.c',
55 'draw/draw_fs.c',
56 'draw/draw_gs.c',
57 'draw/draw_pipe.c',
58 'draw/draw_pipe_aaline.c',
59 'draw/draw_pipe_aapoint.c',
60 'draw/draw_pipe_clip.c',
61 'draw/draw_pipe_cull.c',
62 'draw/draw_pipe_flatshade.c',
63 'draw/draw_pipe_offset.c',
64 'draw/draw_pipe_pstipple.c',
65 'draw/draw_pipe_stipple.c',
66 'draw/draw_pipe_twoside.c',
67 'draw/draw_pipe_unfilled.c',
68 'draw/draw_pipe_util.c',
69 'draw/draw_pipe_validate.c',
70 'draw/draw_pipe_vbuf.c',
71 'draw/draw_pipe_wide_line.c',
72 'draw/draw_pipe_wide_point.c',
73 'draw/draw_pt.c',
74 'draw/draw_pt_emit.c',
75 'draw/draw_pt_fetch.c',
76 'draw/draw_pt_fetch_emit.c',
77 'draw/draw_pt_fetch_shade_emit.c',
78 'draw/draw_pt_fetch_shade_pipeline.c',
79 'draw/draw_pt_post_vs.c',
80 'draw/draw_pt_so_emit.c',
81 'draw/draw_pt_util.c',
82 'draw/draw_pt_vsplit.c',
83 'draw/draw_vertex.c',
84 'draw/draw_vs.c',
85 'draw/draw_vs_aos.c',
86 'draw/draw_vs_aos_io.c',
87 'draw/draw_vs_aos_machine.c',
88 'draw/draw_vs_exec.c',
89 'draw/draw_vs_ppc.c',
90 'draw/draw_vs_sse.c',
91 'draw/draw_vs_varient.c',
92 #'indices/u_indices.c',
93 #'indices/u_unfilled_indices.c',
94 'indices/u_indices_gen.c',
95 'indices/u_unfilled_gen.c',
96 'os/os_misc.c',
97 'os/os_stream.c',
98 'os/os_stream_log.c',
99 'os/os_stream_null.c',
100 'os/os_stream_stdc.c',
101 'os/os_stream_str.c',
102 'os/os_time.c',
103 'pipebuffer/pb_buffer_fenced.c',
104 'pipebuffer/pb_buffer_malloc.c',
105 'pipebuffer/pb_bufmgr_alt.c',
106 'pipebuffer/pb_bufmgr_cache.c',
107 'pipebuffer/pb_bufmgr_debug.c',
108 'pipebuffer/pb_bufmgr_mm.c',
109 'pipebuffer/pb_bufmgr_ondemand.c',
110 'pipebuffer/pb_bufmgr_pool.c',
111 'pipebuffer/pb_bufmgr_slab.c',
112 'pipebuffer/pb_validate.c',
113 'rbug/rbug_connection.c',
114 'rbug/rbug_context.c',
115 'rbug/rbug_core.c',
116 'rbug/rbug_demarshal.c',
117 'rbug/rbug_shader.c',
118 'rbug/rbug_texture.c',
119 'rtasm/rtasm_cpu.c',
120 'rtasm/rtasm_execmem.c',
121 'rtasm/rtasm_ppc.c',
122 'rtasm/rtasm_ppc_spe.c',
123 'rtasm/rtasm_x86sse.c',
124 'tgsi/tgsi_build.c',
125 'tgsi/tgsi_dump.c',
126 'tgsi/tgsi_exec.c',
127 'tgsi/tgsi_info.c',
128 'tgsi/tgsi_iterate.c',
129 'tgsi/tgsi_parse.c',
130 'tgsi/tgsi_ppc.c',
131 'tgsi/tgsi_sanity.c',
132 'tgsi/tgsi_scan.c',
133 'tgsi/tgsi_sse2.c',
134 'tgsi/tgsi_text.c',
135 'tgsi/tgsi_transform.c',
136 'tgsi/tgsi_ureg.c',
137 'tgsi/tgsi_util.c',
138 'translate/translate.c',
139 'translate/translate_cache.c',
140 'translate/translate_generic.c',
141 'translate/translate_sse.c',
142 'util/u_bitmask.c',
143 'util/u_blit.c',
144 'util/u_blitter.c',
145 'util/u_cache.c',
146 'util/u_caps.c',
147 'util/u_cpu_detect.c',
148 'util/u_debug.c',
149 'util/u_debug_describe.c',
150 'util/u_debug_memory.c',
151 'util/u_debug_refcnt.c',
152 'util/u_debug_stack.c',
153 'util/u_debug_symbol.c',
154 'util/u_dump_defines.c',
155 'util/u_dump_state.c',
156 'util/u_dl.c',
157 'util/u_draw_quad.c',
158 'util/u_format.c',
159 'util/u_format_other.c',
160 'util/u_format_s3tc.c',
161 'util/u_format_srgb.c',
162 'util/u_format_table.c',
163 'util/u_format_tests.c',
164 'util/u_format_yuv.c',
165 'util/u_format_zs.c',
166 'util/u_framebuffer.c',
167 'util/u_gen_mipmap.c',
168 'util/u_half.c',
169 'util/u_handle_table.c',
170 'util/u_hash.c',
171 'util/u_hash_table.c',
172 'util/u_index_modify.c',
173 'util/u_keymap.c',
174 'util/u_linear.c',
175 'util/u_linkage.c',
176 'util/u_network.c',
177 'util/u_math.c',
178 'util/u_mempool.c',
179 'util/u_mm.c',
180 'util/u_rect.c',
181 'util/u_resource.c',
182 'util/u_ringbuffer.c',
183 'util/u_sampler.c',
184 'util/u_simple_shaders.c',
185 'util/u_snprintf.c',
186 'util/u_staging.c',
187 'util/u_surface.c',
188 'util/u_surfaces.c',
189 'util/u_texture.c',
190 'util/u_tile.c',
191 'util/u_transfer.c',
192 'util/u_upload_mgr.c',
193 # Disabling until pipe-video branch gets merged in
194 #'vl/vl_bitstream_parser.c',
195 #'vl/vl_mpeg12_mc_renderer.c',
196 #'vl/vl_compositor.c',
197 #'vl/vl_csc.c',
198 #'vl/vl_shader_build.c',
199 'target-helpers/wrap_screen.c',
200 ]
201
202 if env['llvm']:
203 if env['UDIS86']:
204 env.Append(CPPDEFINES = [('HAVE_UDIS86', '1')])
205
206 source += [
207 'gallivm/lp_bld_arit.c',
208 'gallivm/lp_bld_assert.c',
209 'gallivm/lp_bld_bitarit.c',
210 'gallivm/lp_bld_const.c',
211 'gallivm/lp_bld_conv.c',
212 'gallivm/lp_bld_debug.c',
213 'gallivm/lp_bld_flow.c',
214 'gallivm/lp_bld_format_aos.c',
215 'gallivm/lp_bld_format_soa.c',
216 'gallivm/lp_bld_format_yuv.c',
217 'gallivm/lp_bld_gather.c',
218 'gallivm/lp_bld_init.c',
219 'gallivm/lp_bld_intr.c',
220 'gallivm/lp_bld_logic.c',
221 'gallivm/lp_bld_misc.cpp',
222 'gallivm/lp_bld_pack.c',
223 'gallivm/lp_bld_printf.c',
224 'gallivm/lp_bld_quad.c',
225 'gallivm/lp_bld_sample.c',
226 'gallivm/lp_bld_sample_aos.c',
227 'gallivm/lp_bld_sample_soa.c',
228 'gallivm/lp_bld_struct.c',
229 'gallivm/lp_bld_swizzle.c',
230 'gallivm/lp_bld_tgsi_aos.c',
231 'gallivm/lp_bld_tgsi_info.c',
232 'gallivm/lp_bld_tgsi_soa.c',
233 'gallivm/lp_bld_type.c',
234 'draw/draw_llvm.c',
235 'draw/draw_llvm_sample.c',
236 'draw/draw_llvm_translate.c',
237 'draw/draw_pt_fetch_shade_pipeline_llvm.c',
238 'draw/draw_vs_llvm.c'
239 ]
240
241 gallium = env.ConvenienceLibrary(
242 target = 'gallium',
243 source = source,
244 )
245
246 env.Alias('gallium', gallium)
247
248 Export('gallium')