os/os_memory_aligned.h: Handle integer overflow.
[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/llvmpipe/SConscript',
16 'drivers/rbug/SConscript',
17 'drivers/softpipe/SConscript',
18 'drivers/svga/SConscript',
19 'drivers/trace/SConscript',
20 ])
21
22 #
23 # Winsys
24 #
25
26 SConscript([
27 'winsys/sw/null/SConscript',
28 'winsys/sw/wrapper/SConscript',
29 ])
30
31 if env['x11']:
32 SConscript([
33 'winsys/sw/xlib/SConscript',
34 ])
35
36 if env['platform'] == 'windows':
37 SConscript([
38 'winsys/sw/gdi/SConscript',
39 ])
40
41 if env['platform'] == 'haiku':
42 SConscript([
43 'winsys/sw/hgl/SConscript',
44 ])
45
46 if env['dri']:
47 SConscript([
48 'winsys/sw/dri/SConscript',
49 'winsys/sw/kms-dri/SConscript',
50 'winsys/svga/drm/SConscript',
51 ])
52
53
54 #
55 # State trackers and targets
56 #
57
58 SConscript([
59 'targets/graw-null/SConscript',
60 ])
61
62 if not env['embedded']:
63 if env['x11']:
64 SConscript([
65 'state_trackers/glx/xlib/SConscript',
66 'targets/graw-xlib/SConscript',
67 'targets/libgl-xlib/SConscript',
68 ])
69
70 if env['platform'] == 'windows':
71 SConscript([
72 'state_trackers/wgl/SConscript',
73 'targets/graw-gdi/SConscript',
74 'targets/libgl-gdi/SConscript',
75 ])
76
77 if env['platform'] == 'haiku':
78 SConscript([
79 'state_trackers/hgl/SConscript',
80 'targets/haiku-softpipe/SConscript',
81 ])
82
83 if env['dri']:
84 SConscript([
85 'state_trackers/dri/SConscript',
86 'targets/dri/SConscript',
87 ])
88
89
90 #
91 # Unit tests & tools
92 #
93
94 if not env['embedded']:
95 SConscript('tests/unit/SConscript')
96 SConscript('tests/graw/SConscript')