scons: avoid building any piece of i915
[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 # State trackers
26 #
27
28 # Needed by some state trackers
29 SConscript('winsys/sw/null/SConscript')
30
31 if not env['embedded']:
32 SConscript('state_trackers/vega/SConscript')
33 if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
34 SConscript('state_trackers/egl/SConscript')
35
36 if env['x11']:
37 SConscript('state_trackers/glx/xlib/SConscript')
38
39 if env['dri']:
40 SConscript('state_trackers/dri/SConscript')
41
42 if env['platform'] == 'windows':
43 SConscript('state_trackers/wgl/SConscript')
44
45 #
46 # Winsys
47 #
48
49 SConscript([
50 'winsys/sw/wrapper/SConscript',
51 ])
52
53 if env['x11']:
54 SConscript([
55 'winsys/sw/xlib/SConscript',
56 ])
57
58 if env['platform'] == 'windows':
59 SConscript([
60 'winsys/sw/gdi/SConscript',
61 ])
62
63 if env['platform'] == 'haiku':
64 SConscript([
65 'winsys/sw/hgl/SConscript',
66 ])
67
68 if env['dri']:
69 SConscript([
70 'winsys/sw/dri/SConscript',
71 ])
72
73 SConscript([
74 'winsys/svga/drm/SConscript',
75 ])
76
77 #
78 # Targets
79 #
80
81 SConscript([
82 'targets/graw-null/SConscript',
83 ])
84
85 if not env['embedded']:
86 if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
87 SConscript([
88 'targets/egl-static/SConscript'
89 ])
90
91 if env['x11']:
92 SConscript([
93 'targets/graw-xlib/SConscript',
94 'targets/libgl-xlib/SConscript',
95 ])
96
97 if env['platform'] == 'windows':
98 SConscript([
99 'targets/graw-gdi/SConscript',
100 'targets/libgl-gdi/SConscript',
101 ])
102
103 if env['platform'] == 'haiku':
104 SConscript([
105 'targets/haiku-softpipe/SConscript',
106 ])
107
108 if env['dri']:
109 SConscript([
110 'targets/dri-swrast/SConscript',
111 'targets/dri-vmwgfx/SConscript',
112 ])
113
114
115 #
116 # Unit tests & tools
117 #
118
119 if not env['embedded']:
120 SConscript('tests/unit/SConscript')
121 SConscript('tests/graw/SConscript')