1Import('env') 2 3# 4# Auxiliary modules 5# 6 7SConscript('auxiliary/SConscript') 8SConscript('auxiliary/pipe-loader/SConscript') 9 10# 11# Drivers 12# 13 14# These are common and work across all platforms 15SConscript([ 16 'drivers/llvmpipe/SConscript', 17 'drivers/rbug/SConscript', 18 'drivers/softpipe/SConscript', 19 'drivers/svga/SConscript', 20 'drivers/trace/SConscript', 21 'drivers/swr/SConscript', 22]) 23 24# 25# Winsys 26# 27 28SConscript([ 29 'winsys/sw/null/SConscript', 30 'winsys/sw/wrapper/SConscript', 31]) 32 33if env['x11']: 34 SConscript([ 35 'winsys/sw/xlib/SConscript', 36 ]) 37 38if env['platform'] == 'windows': 39 SConscript([ 40 'winsys/sw/gdi/SConscript', 41 ]) 42 43if env['platform'] == 'haiku': 44 SConscript([ 45 'winsys/sw/hgl/SConscript', 46 ]) 47 48if env['dri']: 49 SConscript([ 50 'winsys/sw/dri/SConscript', 51 'winsys/svga/drm/SConscript', 52 ]) 53 54 55# 56# State trackers and targets 57# 58 59SConscript([ 60 'targets/graw-null/SConscript', 61]) 62 63if not env['embedded']: 64 SConscript([ 65 'state_trackers/osmesa/SConscript', 66 'targets/osmesa/SConscript', 67 ]) 68 69 if env['x11']: 70 SConscript([ 71 'state_trackers/glx/xlib/SConscript', 72 'targets/graw-xlib/SConscript', 73 'targets/libgl-xlib/SConscript', 74 ]) 75 76 if env['platform'] == 'windows': 77 SConscript([ 78 'state_trackers/wgl/SConscript', 79 'targets/graw-gdi/SConscript', 80 'targets/libgl-gdi/SConscript', 81 ]) 82 83 if env['platform'] == 'haiku': 84 SConscript([ 85 'state_trackers/hgl/SConscript', 86 'targets/haiku-softpipe/SConscript', 87 ]) 88 89 if env['dri']: 90 SConscript([ 91 'state_trackers/dri/SConscript', 92 'targets/dri/SConscript', 93 ]) 94 95 96# 97# Unit tests & tools 98# 99 100if not env['embedded']: 101 SConscript('tests/unit/SConscript') 102 SConscript('tests/graw/SConscript') 103