ae946377bd05b192707fcfdfc4dd3aa9563f6a74
[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 'drivers/r300/SConscript',
29 ])
30
31 if env['drm']:
32 # These drivers depend on drm headers
33 if env['drm_radeon']:
34 SConscript([
35 'drivers/r600/SConscript',
36 ])
37 # XXX: nouveau drivers have a tight dependency on libdrm, so to enable
38 # we need some version logic before we enable them. Also, ATM there is
39 # no nouveau target in scons
40 # if env['drm_nouveau']:
41 # SConscript([
42 # 'drivers/nouveau/SConscript',
43 # 'drivers/nv50/SConscript',
44 # 'drivers/nvc0/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 if not env['embedded']:
56 SConscript('state_trackers/vega/SConscript')
57 if env['platform'] not in ['darwin', 'haiku']:
58 SConscript('state_trackers/egl/SConscript')
59
60 if env['x11']:
61 SConscript('state_trackers/glx/xlib/SConscript')
62
63 if env['dri']:
64 SConscript('state_trackers/dri/SConscript')
65
66 if env['dri'] and env['xorg']:
67 SConscript('state_trackers/xorg/SConscript')
68
69 if env['platform'] == 'windows':
70 SConscript('state_trackers/wgl/SConscript')
71
72 #
73 # Winsys
74 #
75
76 SConscript('winsys/SConscript')
77
78 #
79 # Targets
80 #
81
82 SConscript([
83 'targets/graw-null/SConscript',
84 ])
85
86 if not env['embedded']:
87 if env['platform'] not in ['darwin', 'haiku']:
88 SConscript([
89 'targets/egl-static/SConscript'
90 ])
91
92 if env['x11']:
93 SConscript([
94 'targets/graw-xlib/SConscript',
95 'targets/libgl-xlib/SConscript',
96 ])
97
98 if env['platform'] == 'windows':
99 SConscript([
100 'targets/graw-gdi/SConscript',
101 'targets/libgl-gdi/SConscript',
102 ])
103
104 if env['dri']:
105 SConscript([
106 'targets/SConscript.dri',
107 'targets/dri-swrast/SConscript',
108 'targets/dri-vmwgfx/SConscript',
109 #'targets/dri-nouveau/SConscript',
110 ])
111 if env['drm_intel']:
112 SConscript([
113 'targets/dri-i915/SConscript',
114 ])
115 if env['drm_radeon']:
116 SConscript([
117 'targets/dri-r300/SConscript',
118 'targets/dri-r600/SConscript',
119 ])
120
121 if env['xorg'] and env['drm']:
122 SConscript([
123 #'targets/xorg-i915/SConscript',
124 #'targets/xorg-nouveau/SConscript',
125 #'targets/xorg-radeon/SConscript',
126 ])
127
128
129 #
130 # Unit tests & tools
131 #
132
133 if not env['embedded']:
134 SConscript('tests/unit/SConscript')
135 SConscript('tests/graw/SConscript')