scons: remove radeon build
[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 if not env['msvc']:
25 # These drivers do not build on MSVC compilers
26 SConscript([
27 'drivers/i915/SConscript',
28 ])
29
30 if env['drm']:
31 # These drivers depend on drm headers
32 # XXX: nouveau drivers have a tight dependency on libdrm, so to enable
33 # we need some version logic before we enable them. Also, ATM there is
34 # no nouveau target in scons
35 # if env['drm_nouveau']:
36 # SConscript([
37 # 'drivers/nouveau/SConscript',
38 # 'drivers/nv50/SConscript',
39 # 'drivers/nvc0/SConscript',
40 # 'drivers/nvfx/SConscript',
41 # ])
42
43 #
44 # State trackers
45 #
46
47 # Needed by some state trackers
48 SConscript('winsys/sw/null/SConscript')
49
50 if not env['embedded']:
51 SConscript('state_trackers/vega/SConscript')
52 if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
53 SConscript('state_trackers/egl/SConscript')
54
55 if env['x11']:
56 SConscript('state_trackers/glx/xlib/SConscript')
57
58 if env['dri']:
59 SConscript('state_trackers/dri/SConscript')
60
61 if env['dri'] and env['xorg']:
62 SConscript('state_trackers/xorg/SConscript')
63
64 if env['platform'] == 'windows':
65 SConscript('state_trackers/wgl/SConscript')
66
67 #
68 # Winsys
69 #
70
71 SConscript([
72 'winsys/sw/wrapper/SConscript',
73 ])
74
75 if env['x11']:
76 SConscript([
77 'winsys/sw/xlib/SConscript',
78 ])
79
80 if env['platform'] == 'windows':
81 SConscript([
82 'winsys/sw/gdi/SConscript',
83 ])
84
85 if not env['msvc']:
86 SConscript([
87 'winsys/i915/sw/SConscript',
88 ])
89
90 if env['dri']:
91 SConscript([
92 'winsys/sw/dri/SConscript',
93 ])
94
95 SConscript([
96 'winsys/svga/drm/SConscript',
97 ])
98
99 if env['drm_intel']:
100 SConscript([
101 'winsys/i915/drm/SConscript',
102 ])
103
104 #
105 # Targets
106 #
107
108 SConscript([
109 'targets/graw-null/SConscript',
110 ])
111
112 if not env['embedded']:
113 if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
114 SConscript([
115 'targets/egl-static/SConscript'
116 ])
117
118 if env['x11']:
119 SConscript([
120 'targets/graw-xlib/SConscript',
121 'targets/libgl-xlib/SConscript',
122 ])
123
124 if env['platform'] == 'windows':
125 SConscript([
126 'targets/graw-gdi/SConscript',
127 'targets/libgl-gdi/SConscript',
128 ])
129
130 if env['dri']:
131 SConscript([
132 'targets/SConscript.dri',
133 'targets/dri-swrast/SConscript',
134 'targets/dri-vmwgfx/SConscript',
135 #'targets/dri-nouveau/SConscript',
136 ])
137 if env['drm_intel']:
138 SConscript([
139 'targets/dri-i915/SConscript',
140 ])
141
142 if env['xorg'] and env['drm']:
143 SConscript([
144 #'targets/xorg-i915/SConscript',
145 #'targets/xorg-nouveau/SConscript',
146 ])
147
148
149 #
150 # Unit tests & tools
151 #
152
153 if not env['embedded']:
154 SConscript('tests/unit/SConscript')
155 SConscript('tests/graw/SConscript')