gallium: Add a dumb drm/kms winsys backed swrast provider
[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/sw/kms-dri/SConscript',
75 ])
76
77 SConscript([
78 'winsys/svga/drm/SConscript',
79 ])
80
81 #
82 # Targets
83 #
84
85 SConscript([
86 'targets/graw-null/SConscript',
87 ])
88
89 if not env['embedded']:
90 if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
91 SConscript([
92 'targets/egl-static/SConscript'
93 ])
94
95 if env['x11']:
96 SConscript([
97 'targets/graw-xlib/SConscript',
98 'targets/libgl-xlib/SConscript',
99 ])
100
101 if env['platform'] == 'windows':
102 SConscript([
103 'targets/graw-gdi/SConscript',
104 'targets/libgl-gdi/SConscript',
105 ])
106
107 if env['platform'] == 'haiku':
108 SConscript([
109 'targets/haiku-softpipe/SConscript',
110 ])
111
112 if env['dri']:
113 SConscript([
114 'targets/dri/SConscript',
115 ])
116
117
118 #
119 # Unit tests & tools
120 #
121
122 if not env['embedded']:
123 SConscript('tests/unit/SConscript')
124 SConscript('tests/graw/SConscript')