ilo: allow bo format to differ from that requested
[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 #
31 # State trackers
32 #
33
34 # Needed by some state trackers
35 SConscript('winsys/sw/null/SConscript')
36
37 if not env['embedded']:
38 SConscript('state_trackers/vega/SConscript')
39 if env['platform'] not in ('cygwin', 'darwin', 'haiku', 'sunos'):
40 SConscript('state_trackers/egl/SConscript')
41
42 if env['x11']:
43 SConscript('state_trackers/glx/xlib/SConscript')
44
45 if env['dri']:
46 SConscript('state_trackers/dri/SConscript')
47
48 if env['dri'] and env['xorg']:
49 SConscript('state_trackers/xorg/SConscript')
50
51 if env['platform'] == 'windows':
52 SConscript('state_trackers/wgl/SConscript')
53
54 #
55 # Winsys
56 #
57
58 SConscript([
59 'winsys/sw/wrapper/SConscript',
60 ])
61
62 if env['x11']:
63 SConscript([
64 'winsys/sw/xlib/SConscript',
65 ])
66
67 if env['platform'] == 'windows':
68 SConscript([
69 'winsys/sw/gdi/SConscript',
70 ])
71
72 if not env['msvc']:
73 SConscript([
74 'winsys/i915/sw/SConscript',
75 ])
76
77 if env['dri']:
78 SConscript([
79 'winsys/sw/dri/SConscript',
80 ])
81
82 SConscript([
83 'winsys/svga/drm/SConscript',
84 ])
85
86 if env['drm_intel']:
87 SConscript([
88 'winsys/i915/drm/SConscript',
89 ])
90
91 #
92 # Targets
93 #
94
95 SConscript([
96 'targets/graw-null/SConscript',
97 ])
98
99 if not env['embedded']:
100 if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'sunos'):
101 SConscript([
102 'targets/egl-static/SConscript'
103 ])
104
105 if env['x11']:
106 SConscript([
107 'targets/graw-xlib/SConscript',
108 'targets/libgl-xlib/SConscript',
109 ])
110
111 if env['platform'] == 'windows':
112 SConscript([
113 'targets/graw-gdi/SConscript',
114 'targets/libgl-gdi/SConscript',
115 ])
116
117 if env['dri']:
118 SConscript([
119 'targets/SConscript.dri',
120 'targets/dri-swrast/SConscript',
121 'targets/dri-vmwgfx/SConscript',
122 ])
123 if env['drm_intel']:
124 SConscript([
125 'targets/dri-i915/SConscript',
126 ])
127
128 if env['xorg'] and env['drm']:
129 SConscript([
130 #'targets/xorg-i915/SConscript',
131 ])
132
133
134 #
135 # Unit tests & tools
136 #
137
138 if not env['embedded']:
139 SConscript('tests/unit/SConscript')
140 SConscript('tests/graw/SConscript')