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