blob: 7688ce9411c2bf4f3fdf6a6f3a5f027f40570b9a [file] [log] [blame]
José Fonsecac42e6252008-01-31 13:14:35 +09001#######################################################################
José Fonseca33ceb672008-02-18 10:52:44 +00002# SConscript for Mesa
José Fonsecac42e6252008-01-31 13:14:35 +09003
4
5Import('*')
Brian Paulf83af362011-09-28 08:15:22 -06006import filecmp
7import os
8import subprocess
José Fonsecac42e6252008-01-31 13:14:35 +09009
José Fonseca601498a2010-11-01 13:30:22 +000010env = env.Clone()
José Fonsecab9da3792008-02-19 15:07:53 +090011
José Fonseca601498a2010-11-01 13:30:22 +000012env.Append(CPPPATH = [
13 '#/src/mapi',
14 '#/src/glsl',
15 '#/src/mesa',
16])
José Fonseca2105b612009-01-06 16:20:12 +000017
Chia-I Wubb770af2011-01-14 17:50:29 +080018env.Append(CPPDEFINES = [
19 'FEATURE_GL=1',
20])
21
José Fonseca601498a2010-11-01 13:30:22 +000022if env['platform'] == 'windows':
23 env.Append(CPPDEFINES = [
24 '_GDI32_', # prevent gl* being declared __declspec(dllimport) in MS headers
25 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
José Fonseca601498a2010-11-01 13:30:22 +000026 ])
Chia-I Wubb770af2011-01-14 17:50:29 +080027 if not env['gles']:
28 # prevent _glapi_* from being declared __declspec(dllimport)
29 env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
Chia-I Wubb045d32010-11-20 17:47:11 -080030else:
31 env.Append(CPPDEFINES = [
32 'IN_DRI_DRIVER', # enable the remap table (for DRI drivers)
33 ])
José Fonseca5c9c6b02008-06-04 23:56:57 +090034
José Fonseca601498a2010-11-01 13:30:22 +000035#
36# Source files
37#
Michal Krol3371f7e2009-11-25 14:52:21 +010038
José Fonseca601498a2010-11-01 13:30:22 +000039main_sources = [
40 'main/api_arrayelt.c',
41 'main/api_exec.c',
42 'main/api_loopback.c',
43 'main/api_noop.c',
44 'main/api_validate.c',
45 'main/accum.c',
46 'main/arbprogram.c',
47 'main/atifragshader.c',
48 'main/attrib.c',
49 'main/arrayobj.c',
50 'main/blend.c',
51 'main/bufferobj.c',
52 'main/buffers.c',
53 'main/clear.c',
54 'main/clip.c',
55 'main/colortab.c',
56 'main/condrender.c',
57 'main/context.c',
58 'main/convolve.c',
59 'main/cpuinfo.c',
60 'main/debug.c',
61 'main/depth.c',
62 'main/depthstencil.c',
63 'main/dlist.c',
64 'main/dlopen.c',
65 'main/drawpix.c',
66 'main/drawtex.c',
67 'main/enable.c',
68 'main/enums.c',
69 'main/eval.c',
70 'main/execmem.c',
71 'main/extensions.c',
72 'main/fbobject.c',
73 'main/feedback.c',
Vinson Leedee6eaf2011-03-11 13:32:41 -080074 'main/ff_fragment_shader.cpp',
José Fonseca601498a2010-11-01 13:30:22 +000075 'main/ffvertex_prog.c',
76 'main/fog.c',
77 'main/formats.c',
Brian Paul730952a2011-09-08 20:16:18 -060078 'main/format_unpack.c',
José Fonseca601498a2010-11-01 13:30:22 +000079 'main/framebuffer.c',
80 'main/get.c',
81 'main/getstring.c',
82 'main/hash.c',
83 'main/hint.c',
84 'main/histogram.c',
85 'main/image.c',
86 'main/imports.c',
87 'main/light.c',
88 'main/lines.c',
89 'main/matrix.c',
90 'main/mipmap.c',
91 'main/mm.c',
92 'main/multisample.c',
93 'main/nvprogram.c',
94 'main/pack.c',
Brian Paulb70610b2011-02-28 18:24:35 -070095 'main/pbo.c',
José Fonseca601498a2010-11-01 13:30:22 +000096 'main/pixel.c',
97 'main/pixelstore.c',
98 'main/pixeltransfer.c',
99 'main/points.c',
100 'main/polygon.c',
101 'main/querymatrix.c',
102 'main/queryobj.c',
103 'main/rastpos.c',
104 'main/readpix.c',
105 'main/remap.c',
106 'main/renderbuffer.c',
Brian Paul34a5d3b2011-04-10 12:48:28 -0600107 'main/samplerobj.c',
José Fonseca601498a2010-11-01 13:30:22 +0000108 'main/scissor.c',
109 'main/shaderapi.c',
110 'main/shaderobj.c',
Brian Paul6399b7d2011-10-04 15:59:09 -0600111 'main/shader_query.cpp',
José Fonseca601498a2010-11-01 13:30:22 +0000112 'main/shared.c',
113 'main/state.c',
114 'main/stencil.c',
115 'main/syncobj.c',
116 'main/texcompress.c',
Vinson Lee93893132011-02-27 23:17:49 -0800117 'main/texcompress_rgtc.c',
José Fonseca601498a2010-11-01 13:30:22 +0000118 'main/texcompress_s3tc.c',
119 'main/texcompress_fxt1.c',
120 'main/texenv.c',
José Fonseca601498a2010-11-01 13:30:22 +0000121 'main/texformat.c',
122 'main/texgen.c',
123 'main/texgetimage.c',
124 'main/teximage.c',
125 'main/texobj.c',
126 'main/texpal.c',
127 'main/texparam.c',
José Fonseca601498a2010-11-01 13:30:22 +0000128 'main/texstate.c',
Brian Paul29eb2e82011-10-31 10:52:56 -0600129 'main/texstorage.c',
José Fonseca601498a2010-11-01 13:30:22 +0000130 'main/texstore.c',
Marek Olšákd0e805e2011-03-15 16:25:16 +0100131 'main/texturebarrier.c',
José Fonseca601498a2010-11-01 13:30:22 +0000132 'main/transformfeedback.c',
Vinson Lee116b7bb2011-10-18 18:39:11 -0700133 'main/uniform_query.cpp',
José Fonseca601498a2010-11-01 13:30:22 +0000134 'main/uniforms.c',
135 'main/varray.c',
136 'main/version.c',
137 'main/viewport.c',
138 'main/vtxfmt.c',
139]
José Fonseca5c9c6b02008-06-04 23:56:57 +0900140
José Fonseca601498a2010-11-01 13:30:22 +0000141math_sources = [
142 'math/m_debug_clip.c',
143 'math/m_debug_norm.c',
144 'math/m_debug_xform.c',
145 'math/m_eval.c',
146 'math/m_matrix.c',
147 'math/m_translate.c',
148 'math/m_vector.c',
149 'math/m_xform.c',
150]
151
José Fonseca8e8a56e2011-04-23 12:22:59 +0100152math_xform_sources = [
153 'math/m_xform.c'
154]
155
156swrast_sources = [
157 'swrast/s_aaline.c',
158 'swrast/s_aatriangle.c',
159 'swrast/s_accum.c',
160 'swrast/s_alpha.c',
161 'swrast/s_atifragshader.c',
162 'swrast/s_bitmap.c',
163 'swrast/s_blend.c',
164 'swrast/s_blit.c',
165 'swrast/s_clear.c',
166 'swrast/s_copypix.c',
167 'swrast/s_context.c',
168 'swrast/s_depth.c',
169 'swrast/s_drawpix.c',
170 'swrast/s_feedback.c',
171 'swrast/s_fog.c',
172 'swrast/s_fragprog.c',
173 'swrast/s_lines.c',
174 'swrast/s_logic.c',
175 'swrast/s_masking.c',
176 'swrast/s_points.c',
177 'swrast/s_readpix.c',
178 'swrast/s_span.c',
179 'swrast/s_stencil.c',
180 'swrast/s_texcombine.c',
Brian Paulbaeefef2011-09-17 14:50:48 -0600181 'swrast/s_texfetch.c',
José Fonseca8e8a56e2011-04-23 12:22:59 +0100182 'swrast/s_texfilter.c',
Brian Paul755f2e22011-06-13 13:44:35 -0600183 'swrast/s_texrender.c',
Brian Paul6f1846e2011-08-29 11:37:13 -0600184 'swrast/s_texture.c',
José Fonseca8e8a56e2011-04-23 12:22:59 +0100185 'swrast/s_triangle.c',
186 'swrast/s_zoom.c',
187]
188
189swrast_setup_sources = [
190 'swrast_setup/ss_context.c',
191 'swrast_setup/ss_triangle.c',
192]
193
194tnl_sources = [
195 'tnl/t_context.c',
196 'tnl/t_pipeline.c',
197 'tnl/t_draw.c',
198 'tnl/t_rasterpos.c',
199 'tnl/t_vb_program.c',
200 'tnl/t_vb_render.c',
201 'tnl/t_vb_texgen.c',
202 'tnl/t_vb_texmat.c',
203 'tnl/t_vb_vertex.c',
204 'tnl/t_vb_fog.c',
205 'tnl/t_vb_light.c',
206 'tnl/t_vb_normals.c',
207 'tnl/t_vb_points.c',
208 'tnl/t_vp_build.c',
209 'tnl/t_vertex.c',
210 'tnl/t_vertex_sse.c',
211 'tnl/t_vertex_generic.c',
212]
213
José Fonseca601498a2010-11-01 13:30:22 +0000214vbo_sources = [
215 'vbo/vbo_context.c',
216 'vbo/vbo_exec.c',
217 'vbo/vbo_exec_api.c',
218 'vbo/vbo_exec_array.c',
219 'vbo/vbo_exec_draw.c',
220 'vbo/vbo_exec_eval.c',
221 'vbo/vbo_rebase.c',
222 'vbo/vbo_split.c',
223 'vbo/vbo_split_copy.c',
224 'vbo/vbo_split_inplace.c',
225 'vbo/vbo_save.c',
226 'vbo/vbo_save_api.c',
227 'vbo/vbo_save_draw.c',
228 'vbo/vbo_save_loopback.c',
229]
230
José Fonseca601498a2010-11-01 13:30:22 +0000231statetracker_sources = [
232 'state_tracker/st_atom.c',
233 'state_tracker/st_atom_blend.c',
234 'state_tracker/st_atom_clip.c',
235 'state_tracker/st_atom_constbuf.c',
236 'state_tracker/st_atom_depth.c',
237 'state_tracker/st_atom_framebuffer.c',
238 'state_tracker/st_atom_msaa.c',
239 'state_tracker/st_atom_pixeltransfer.c',
240 'state_tracker/st_atom_sampler.c',
241 'state_tracker/st_atom_scissor.c',
242 'state_tracker/st_atom_shader.c',
243 'state_tracker/st_atom_rasterizer.c',
244 'state_tracker/st_atom_stipple.c',
245 'state_tracker/st_atom_texture.c',
246 'state_tracker/st_atom_viewport.c',
247 'state_tracker/st_cb_accum.c',
248 'state_tracker/st_cb_bitmap.c',
249 'state_tracker/st_cb_blit.c',
250 'state_tracker/st_cb_bufferobjects.c',
251 'state_tracker/st_cb_clear.c',
252 'state_tracker/st_cb_condrender.c',
253 'state_tracker/st_cb_flush.c',
254 'state_tracker/st_cb_drawpixels.c',
255 'state_tracker/st_cb_drawtex.c',
256 'state_tracker/st_cb_eglimage.c',
257 'state_tracker/st_cb_fbo.c',
258 'state_tracker/st_cb_feedback.c',
259 'state_tracker/st_cb_program.c',
260 'state_tracker/st_cb_queryobj.c',
261 'state_tracker/st_cb_rasterpos.c',
262 'state_tracker/st_cb_readpixels.c',
Marek Olšák5257a6d2011-03-05 20:32:28 +0100263 'state_tracker/st_cb_syncobj.c',
José Fonseca601498a2010-11-01 13:30:22 +0000264 'state_tracker/st_cb_strings.c',
265 'state_tracker/st_cb_texture.c',
Marek Olšákaea4ed42011-03-08 11:32:35 +0100266 'state_tracker/st_cb_texturebarrier.c',
José Fonseca601498a2010-11-01 13:30:22 +0000267 'state_tracker/st_cb_viewport.c',
268 'state_tracker/st_cb_xformfb.c',
269 'state_tracker/st_context.c',
270 'state_tracker/st_debug.c',
271 'state_tracker/st_draw.c',
272 'state_tracker/st_draw_feedback.c',
273 'state_tracker/st_extensions.c',
274 'state_tracker/st_format.c',
Brian Pauld7f2e382011-08-04 15:55:13 -0600275 'state_tracker/st_glsl_to_tgsi.cpp',
José Fonseca601498a2010-11-01 13:30:22 +0000276 'state_tracker/st_gen_mipmap.c',
277 'state_tracker/st_manager.c',
278 'state_tracker/st_mesa_to_tgsi.c',
279 'state_tracker/st_program.c',
280 'state_tracker/st_texture.c',
281]
282
Kenneth Graunke8be58df2011-03-01 15:04:04 -0800283env.Append(YACCFLAGS = '-d')
284program_lex = env.CFile('program/lex.yy.c', 'program/program_lexer.l')
285program_parse = env.CFile('program/program_parse.tab.c',
286 'program/program_parse.y')
José Fonsecadbfbb8c2011-03-03 15:43:18 +0000287
288# Make program/program_parse.tab.h reacheable from the include path
José Fonseca5d0e8be2011-03-03 16:57:38 +0000289env.Append(CPPPATH = [Dir('.').abspath])
José Fonsecadbfbb8c2011-03-03 15:43:18 +0000290
José Fonseca601498a2010-11-01 13:30:22 +0000291program_sources = [
292 'program/arbprogparse.c',
293 'program/hash_table.c',
294 'program/ir_to_mesa.cpp',
José Fonseca601498a2010-11-01 13:30:22 +0000295 'program/nvfragparse.c',
296 'program/nvvertparse.c',
297 'program/program.c',
José Fonseca601498a2010-11-01 13:30:22 +0000298 'program/program_parse_extra.c',
299 'program/prog_cache.c',
300 'program/prog_execute.c',
301 'program/prog_instruction.c',
302 'program/prog_noise.c',
303 'program/prog_optimize.c',
Ian Romanick54c48a92011-02-10 15:48:27 -0800304 'program/prog_opt_constant_fold.c',
José Fonseca601498a2010-11-01 13:30:22 +0000305 'program/prog_parameter.c',
306 'program/prog_parameter_layout.c',
307 'program/prog_print.c',
308 'program/prog_statevars.c',
309 'program/prog_uniform.c',
310 'program/programopt.c',
311 'program/sampler.cpp',
312 'program/symbol_table.c',
Brian Paul6399b7d2011-10-04 15:59:09 -0600313 'program/string_to_uint_map.cpp',
Kenneth Graunke8be58df2011-03-01 15:04:04 -0800314 program_lex,
315 program_parse[0],
José Fonseca601498a2010-11-01 13:30:22 +0000316]
317
José Fonseca8e8a56e2011-04-23 12:22:59 +0100318common_driver_sources = [
319 'drivers/common/driverfuncs.c',
320 'drivers/common/meta.c',
321]
322
José Fonseca601498a2010-11-01 13:30:22 +0000323mesa_sources = (
324 main_sources +
325 math_sources +
José Fonseca8e8a56e2011-04-23 12:22:59 +0100326 math_xform_sources +
José Fonseca601498a2010-11-01 13:30:22 +0000327 program_sources +
328 vbo_sources +
José Fonseca8e8a56e2011-04-23 12:22:59 +0100329 tnl_sources +
330 swrast_sources +
331 swrast_setup_sources +
332 common_driver_sources +
José Fonseca601498a2010-11-01 13:30:22 +0000333 statetracker_sources
334)
335
Chia-I Wubb770af2011-01-14 17:50:29 +0800336if env['gles']:
337 from sys import executable as python_cmd
338
339 env.Append(CPPDEFINES = ['FEATURE_ES1=1', 'FEATURE_ES2=1'])
340
341 # generate GLES sources
342 gles_sources = []
343 gles_sources += env.CodeGenerate(
344 target = 'main/api_exec_es1.c',
345 script = 'main/es_generator.py',
346 source = 'main/APIspec.xml',
347 command = python_cmd + ' $SCRIPT -S $SOURCE -V GLES1.1 > $TARGET'
348 )
349 gles_sources += env.CodeGenerate(
350 target = 'main/api_exec_es2.c',
351 script = 'main/es_generator.py',
352 source = 'main/APIspec.xml',
353 command = python_cmd + ' $SCRIPT -S $SOURCE -V GLES2.0 > $TARGET'
354 )
355
356 # generate GLES headers
357 GLAPI = '#src/mapi/glapi/'
358 gles_headers = []
359 gles_headers += env.CodeGenerate(
Chia-I Wu6eff33d2011-08-11 16:41:09 +0800360 target = 'main/api_exec_es1_dispatch.h',
Chia-I Wubb770af2011-01-14 17:50:29 +0800361 script = GLAPI + 'gen/gl_table.py',
Chia-I Wu50765612011-08-08 10:14:44 +0900362 source = GLAPI + 'gen/gl_and_es_API.xml',
363 command = python_cmd + ' $SCRIPT -c es1 -m remap_table -f $SOURCE > $TARGET',
Chia-I Wubb770af2011-01-14 17:50:29 +0800364 )
365 gles_headers += env.CodeGenerate(
Chia-I Wu6eff33d2011-08-11 16:41:09 +0800366 target = 'main/api_exec_es1_remap_helper.h',
Chia-I Wubb770af2011-01-14 17:50:29 +0800367 script = GLAPI + 'gen/remap_helper.py',
Chia-I Wu50765612011-08-08 10:14:44 +0900368 source = GLAPI + 'gen/gl_and_es_API.xml',
369 command = python_cmd + ' $SCRIPT -c es1 -f $SOURCE > $TARGET',
Chia-I Wubb770af2011-01-14 17:50:29 +0800370 )
371 gles_headers += env.CodeGenerate(
Chia-I Wu6eff33d2011-08-11 16:41:09 +0800372 target = 'main/api_exec_es2_dispatch.h',
Chia-I Wubb770af2011-01-14 17:50:29 +0800373 script = GLAPI + 'gen/gl_table.py',
Chia-I Wu50765612011-08-08 10:14:44 +0900374 source = GLAPI + 'gen/gl_and_es_API.xml',
375 command = python_cmd + ' $SCRIPT -c es2 -m remap_table -f $SOURCE > $TARGET',
Chia-I Wubb770af2011-01-14 17:50:29 +0800376 )
377 gles_headers += env.CodeGenerate(
Chia-I Wu6eff33d2011-08-11 16:41:09 +0800378 target = 'main/api_exec_es2_remap_helper.h',
Chia-I Wubb770af2011-01-14 17:50:29 +0800379 script = GLAPI + 'gen/remap_helper.py',
Chia-I Wu50765612011-08-08 10:14:44 +0900380 source = GLAPI + 'gen/gl_and_es_API.xml',
381 command = python_cmd + ' $SCRIPT -c es2 -f $SOURCE > $TARGET',
Chia-I Wubb770af2011-01-14 17:50:29 +0800382 )
383
384 env.Depends(gles_sources, gles_headers)
385
386 # gles_sources #include gles_headers with full path
387 env.Append(CPPPATH = [gles_headers[0].dir.up().up()])
388
389 mesa_sources += gles_sources
390
José Fonseca601498a2010-11-01 13:30:22 +0000391#
392# Assembly sources
393#
José Fonsecaf9156eb2010-11-01 13:56:16 +0000394if env['gcc'] and env['platform'] != 'windows':
395 if env['machine'] == 'x86':
396 env.Append(CPPDEFINES = [
397 'USE_X86_ASM',
398 'USE_MMX_ASM',
399 'USE_3DNOW_ASM',
400 'USE_SSE_ASM',
401 ])
402 mesa_sources += [
403 'x86/common_x86.c',
404 'x86/x86_xform.c',
405 'x86/3dnow.c',
406 'x86/sse.c',
407 'x86/common_x86_asm.S',
408 'x86/x86_xform2.S',
409 'x86/x86_xform3.S',
410 'x86/x86_xform4.S',
411 'x86/x86_cliptest.S',
412 'x86/mmx_blend.S',
413 'x86/3dnow_xform1.S',
414 'x86/3dnow_xform2.S',
415 'x86/3dnow_xform3.S',
416 'x86/3dnow_xform4.S',
417 'x86/3dnow_normal.S',
418 'x86/sse_xform1.S',
419 'x86/sse_xform2.S',
420 'x86/sse_xform3.S',
421 'x86/sse_xform4.S',
422 'x86/sse_normal.S',
423 'x86/read_rgba_span_x86.S',
424 ]
425 elif env['machine'] == 'x86_64':
426 env.Append(CPPDEFINES = [
427 'USE_X86_64_ASM',
428 ])
429 mesa_sources += [
430 'x86-64/x86-64.c',
431 'x86-64/xform4.S',
432 ]
433 elif env['machine'] == 'ppc':
434 env.Append(CPPDEFINES = [
435 'USE_PPC_ASM',
436 'USE_VMX_ASM',
437 ])
438 mesa_sources += [
439 'ppc/common_ppc.c',
440 ]
441 elif env['machine'] == 'sparc':
442 mesa_sources += [
443 'sparc/sparc.c',
444 'sparc/clip.S',
445 'sparc/norm.S',
446 'sparc/xform.S',
447 ]
448 else:
449 pass
José Fonseca601498a2010-11-01 13:30:22 +0000450
José Fonsecaf9156eb2010-11-01 13:56:16 +0000451 # Generate matypes.h
452 if env['machine'] in ('x86', 'x86_64'):
453 # See http://www.scons.org/wiki/UsingCodeGenerators
454 gen_matypes = env.Program(
455 target = 'gen_matypes',
456 source = 'x86/gen_matypes.c',
457 )
458 matypes = env.Command(
459 'matypes.h',
460 gen_matypes,
461 gen_matypes[0].abspath + ' > $TARGET',
462 )
463 # Add the dir containing the generated header (somewhere inside the
464 # build dir) to the include path
465 env.Append(CPPPATH = [matypes[0].dir])
José Fonseca601498a2010-11-01 13:30:22 +0000466
Brian Paul0c245502011-04-05 14:07:41 -0600467
Brian Paulf83af362011-09-28 08:15:22 -0600468
469
470def write_git_sha1_h_file(filename):
471 """Mesa looks for a git_sha1.h file at compile time in order to display
472 the current git hash id in the GL_VERSION string. This function tries
473 to retrieve the git hashid and write the header file. An empty file
474 will be created if anything goes wrong."""
475
476 args = [ 'git', 'log', '-n', '1', '--oneline' ]
477 try:
478 (commit, foo) = subprocess.Popen(args, stdout=subprocess.PIPE).communicate()
479 except:
480 # git log command didn't work
481 if not os.path.exists(filename):
482 # create an empty file if none already exists
483 f = open(filename, "w")
484 f.close()
485 return
486
Brian Pauld487cc22011-09-28 09:51:36 -0600487 commit = '#define MESA_GIT_SHA1 "git-%s"\n' % commit[0:7]
Brian Paulf83af362011-09-28 08:15:22 -0600488 tempfile = "git_sha1.h.tmp"
489 f = open(tempfile, "w")
490 f.write(commit)
Vinson Lee622ee082011-04-05 15:32:39 -0700491 f.close()
Brian Paulf83af362011-09-28 08:15:22 -0600492 if not os.path.exists(filename) or not filecmp.cmp(tempfile, filename):
493 # The filename does not exist or it's different from the new file,
494 # so replace old file with new.
Brian Paule1122872011-09-28 09:04:03 -0600495 if os.path.exists(filename):
496 os.remove(filename)
Brian Paulf83af362011-09-28 08:15:22 -0600497 os.rename(tempfile, filename)
498 return
499
500
501# Create the git_sha1.h header file
502write_git_sha1_h_file("main/git_sha1.h")
Vinson Lee622ee082011-04-05 15:32:39 -0700503# and update CPPPATH so the git_sha1.h header can be found
504env.Append(CPPPATH = ["#" + env['build_dir'] + "/mesa/main"])
Brian Paul0c245502011-04-05 14:07:41 -0600505
506
José Fonseca601498a2010-11-01 13:30:22 +0000507#
508# Libraries
509#
510
511mesa = env.ConvenienceLibrary(
512 target = 'mesa',
513 source = mesa_sources,
514)
515
516env.Alias('mesa', mesa)
517
518Export('mesa')
José Fonseca8e8a56e2011-04-23 12:22:59 +0100519
520SConscript('drivers/SConscript')