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