0efab834f66b4691a40efb6ab346d0e694dd48bd
[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 SConscript([
14 'drivers/failover/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 'drivers/i965/SConscript',
29 'drivers/r300/SConscript',
30 ])
31
32 if env['drm']:
33 # These drivers depend on drm headers
34 if env['drm_radeon']:
35 SConscript([
36 'drivers/r600/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/nvfx/SConscript',
46 # ])
47
48 #
49 # State trackers
50 #
51
52 # Needed by some state trackers
53 SConscript('winsys/sw/null/SConscript')
54
55 SConscript('state_trackers/python/SConscript')
56 if env['platform'] != 'embedded':
57 SConscript('state_trackers/vega/SConscript')
58
59 if env['x11']:
60 SConscript('state_trackers/glx/xlib/SConscript')
61
62 if env['dri']:
63 SConscript('state_trackers/dri/SConscript')
64
65 if env['dri'] and env['xorg']:
66 SConscript('state_trackers/xorg/SConscript')
67
68 if env['platform'] == 'windows':
69 SConscript([
70 'state_trackers/egl/SConscript',
71 'state_trackers/wgl/SConscript',
72 ])
73
74 #
75 # Winsys
76 #
77
78 SConscript('winsys/SConscript')
79
80 #
81 # Targets
82 #
83
84 SConscript([
85 'targets/graw-null/SConscript',
86 ])
87
88 if env['x11']:
89 SConscript([
90 'targets/graw-xlib/SConscript',
91 'targets/libgl-xlib/SConscript',
92 ])
93
94 if env['platform'] == 'windows':
95 SConscript([
96 'targets/graw-gdi/SConscript',
97 'targets/libgl-gdi/SConscript',
98 #'egl-gdi/SConscript',
99 ])
100
101 if env['dri']:
102 SConscript([
103 'targets/SConscript.dri',
104 'targets/dri-swrast/SConscript',
105 'targets/dri-vmwgfx/SConscript',
106 #'targets/dri-nouveau/SConscript',
107 ])
108 if env['drm_intel']:
109 SConscript([
110 'targets/dri-i915/SConscript',
111 'targets/dri-i965/SConscript',
112 ])
113 if env['drm_radeon']:
114 SConscript([
115 'targets/dri-r300/SConscript',
116 'targets/dri-r600/SConscript',
117 ])
118
119 if env['xorg'] and env['drm']:
120 SConscript([
121 #'targets/xorg-i915/SConscript',
122 #'targets/xorg-i965/SConscript',
123 #'targets/xorg-nouveau/SConscript',
124 #'targets/xorg-radeon/SConscript',
125 'targets/xorg-vmwgfx/SConscript',
126 ])
127
128
129 #
130 # Unit tests & tools
131 #
132
133 if env['platform'] != 'embedded':
134 SConscript('tests/unit/SConscript')
135 SConscript('tests/graw/SConscript')