1848b8605SmrgImport('env')
2848b8605Smrg
3b8e80941Smrg#
4848b8605Smrg# Auxiliary modules
5848b8605Smrg#
6848b8605Smrg
7848b8605SmrgSConscript('auxiliary/SConscript')
8b8e80941SmrgSConscript('auxiliary/pipe-loader/SConscript')
9848b8605Smrg
10848b8605Smrg#
11848b8605Smrg# Drivers
12848b8605Smrg#
13848b8605Smrg
14848b8605Smrg# These are common and work across all platforms
15848b8605SmrgSConscript([
16848b8605Smrg    'drivers/llvmpipe/SConscript',
17848b8605Smrg    'drivers/softpipe/SConscript',
18848b8605Smrg    'drivers/svga/SConscript',
19b8e80941Smrg    'drivers/swr/SConscript',
20848b8605Smrg])
21848b8605Smrg
22848b8605Smrg#
23848b8605Smrg# Winsys
24848b8605Smrg#
25848b8605Smrg
26848b8605SmrgSConscript([
27848b8605Smrg    'winsys/sw/null/SConscript',
28848b8605Smrg    'winsys/sw/wrapper/SConscript',
29848b8605Smrg])
30848b8605Smrg
31848b8605Smrgif env['x11']:
32848b8605Smrg    SConscript([
33848b8605Smrg        'winsys/sw/xlib/SConscript',
34848b8605Smrg    ])
35848b8605Smrg
36848b8605Smrgif env['platform'] == 'windows':
37848b8605Smrg    SConscript([
38848b8605Smrg        'winsys/sw/gdi/SConscript',
39848b8605Smrg    ])
40848b8605Smrg
41848b8605Smrgif env['platform'] == 'haiku':
42848b8605Smrg    SConscript([
43848b8605Smrg        'winsys/sw/hgl/SConscript',
44848b8605Smrg    ])
45848b8605Smrg
46848b8605Smrgif env['dri']:
47848b8605Smrg    SConscript([
48848b8605Smrg        'winsys/sw/dri/SConscript',
49848b8605Smrg        'winsys/svga/drm/SConscript',
50848b8605Smrg    ])
51848b8605Smrg
52848b8605Smrg
53848b8605Smrg#
54848b8605Smrg# State trackers and targets
55848b8605Smrg#
56848b8605Smrg
57848b8605SmrgSConscript([
58848b8605Smrg    'targets/graw-null/SConscript',
59848b8605Smrg])
60848b8605Smrg
61848b8605Smrgif not env['embedded']:
62b8e80941Smrg    SConscript([
63b8e80941Smrg        'state_trackers/osmesa/SConscript',
64b8e80941Smrg        'targets/osmesa/SConscript',
65b8e80941Smrg    ])
66848b8605Smrg
67848b8605Smrg    if env['x11']:
68848b8605Smrg        SConscript([
69848b8605Smrg            'state_trackers/glx/xlib/SConscript',
70848b8605Smrg            'targets/graw-xlib/SConscript',
71848b8605Smrg            'targets/libgl-xlib/SConscript',
72848b8605Smrg        ])
73848b8605Smrg
74848b8605Smrg    if env['platform'] == 'windows':
75848b8605Smrg        SConscript([
76848b8605Smrg            'state_trackers/wgl/SConscript',
77848b8605Smrg            'targets/graw-gdi/SConscript',
78848b8605Smrg            'targets/libgl-gdi/SConscript',
79848b8605Smrg        ])
80848b8605Smrg
81848b8605Smrg    if env['platform'] == 'haiku':
82848b8605Smrg        SConscript([
83b8e80941Smrg            'state_trackers/hgl/SConscript',
84848b8605Smrg            'targets/haiku-softpipe/SConscript',
85848b8605Smrg        ])
86848b8605Smrg
87848b8605Smrg    if env['dri']:
88848b8605Smrg        SConscript([
89848b8605Smrg            'state_trackers/dri/SConscript',
90848b8605Smrg            'targets/dri/SConscript',
91848b8605Smrg        ])
92848b8605Smrg
93848b8605Smrg
94848b8605Smrg#
95848b8605Smrg# Unit tests & tools
96848b8605Smrg#
97848b8605Smrg
98848b8605Smrgif not env['embedded']:
99848b8605Smrg    SConscript('tests/unit/SConscript')
100848b8605Smrg    SConscript('tests/graw/SConscript')
101