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