1SUBDIRS =
2
3##
4## Gallium auxiliary module
5##
6
7SUBDIRS += auxiliary
8SUBDIRS += auxiliary/pipe-loader
9
10##
11## Gallium pipe drivers and their respective winsys'
12##
13
14SUBDIRS += \
15	drivers/ddebug \
16	drivers/noop \
17	drivers/trace \
18	drivers/rbug
19
20## freedreno/msm/kgsl
21if HAVE_GALLIUM_FREEDRENO
22SUBDIRS += drivers/freedreno winsys/freedreno/drm
23endif
24
25## i915g/i915
26if HAVE_GALLIUM_I915
27SUBDIRS += drivers/i915 winsys/i915/drm
28endif
29
30## ilo/i965
31if HAVE_GALLIUM_ILO
32SUBDIRS += drivers/ilo winsys/intel/drm
33endif
34
35## nouveau
36if HAVE_GALLIUM_NOUVEAU
37SUBDIRS += drivers/nouveau winsys/nouveau/drm
38endif
39
40## vmwgfx/svga
41if HAVE_GALLIUM_SVGA
42SUBDIRS += drivers/svga winsys/svga/drm
43endif
44
45## r300
46if HAVE_GALLIUM_R300
47SUBDIRS += drivers/r300
48endif
49
50## radeon - linked into r600 and radeonsi
51if HAVE_GALLIUM_RADEON_COMMON
52SUBDIRS += drivers/radeon
53endif
54
55## r600
56if HAVE_GALLIUM_R600
57SUBDIRS += drivers/r600
58endif
59
60## radeonsi
61if HAVE_GALLIUM_RADEONSI
62SUBDIRS += drivers/radeonsi
63SUBDIRS += winsys/amdgpu/drm
64endif
65
66## the radeon winsys - linked in by r300, r600 and radeonsi
67if NEED_RADEON_DRM_WINSYS
68SUBDIRS += winsys/radeon/drm
69endif
70
71if HAVE_GALLIUM_ETNAVIV
72SUBDIRS += drivers/etnaviv winsys/etnaviv/drm
73endif
74
75if HAVE_GALLIUM_IMX
76SUBDIRS += drivers/imx winsys/imx/drm
77endif
78
79## swrast/softpipe
80if HAVE_GALLIUM_SOFTPIPE
81SUBDIRS += drivers/softpipe
82
83## swrast/llvmpipe
84if HAVE_GALLIUM_LLVMPIPE
85SUBDIRS += drivers/llvmpipe
86endif
87endif
88
89if HAVE_GALLIUM_SWR
90SUBDIRS += drivers/swr
91endif
92
93## vc4/rpi
94if HAVE_GALLIUM_VC4
95SUBDIRS += drivers/vc4 winsys/vc4/drm
96endif
97
98## virgl
99if HAVE_GALLIUM_VIRGL
100SUBDIRS += drivers/virgl winsys/virgl/drm winsys/virgl/vtest
101endif
102
103## the sw winsys'
104SUBDIRS += winsys/sw/null
105
106if NEED_WINSYS_XLIB
107SUBDIRS += winsys/sw/xlib
108endif
109
110if HAVE_DRISW
111SUBDIRS += winsys/sw/dri
112endif
113
114if HAVE_DRISW_KMS
115SUBDIRS += winsys/sw/kms-dri
116endif
117
118SUBDIRS += winsys/sw/wrapper
119
120##
121## Don't forget to bundle the remaining (non autotools) winsys'
122##
123
124EXTRA_DIST = \
125	docs \
126	README.portability \
127	SConscript \
128	winsys/sw/gdi \
129	winsys/sw/hgl
130
131
132##
133## Gallium state trackers and their users (targets)
134##
135
136## XXX: Rename the conditional once we have a config switch for static/dynamic pipe-drivers
137if HAVE_CLOVER
138SUBDIRS += targets/pipe-loader
139endif
140
141if HAVE_CLOVER
142SUBDIRS += state_trackers/clover targets/opencl
143endif
144
145if HAVE_DRICOMMON
146SUBDIRS += state_trackers/dri targets/dri
147endif
148
149if HAVE_GALLIUM_XLIB_GLX
150SUBDIRS += state_trackers/glx/xlib targets/libgl-xlib
151endif
152
153if HAVE_ST_OMX
154SUBDIRS += state_trackers/omx targets/omx
155endif
156
157if HAVE_GALLIUM_OSMESA
158SUBDIRS += state_trackers/osmesa targets/osmesa
159endif
160
161if HAVE_ST_VA
162SUBDIRS += state_trackers/va targets/va
163endif
164
165if HAVE_ST_VDPAU
166SUBDIRS += state_trackers/vdpau targets/vdpau
167endif
168
169if HAVE_ST_XA
170SUBDIRS += state_trackers/xa targets/xa
171endif
172
173if HAVE_ST_XVMC
174SUBDIRS += state_trackers/xvmc targets/xvmc
175endif
176
177if HAVE_ST_NINE
178SUBDIRS += state_trackers/nine targets/d3dadapter9
179endif
180
181##
182## Don't forget to bundle the remaining (non autotools) state-trackers/targets
183##
184
185EXTRA_DIST += \
186	include \
187	state_trackers/README \
188	state_trackers/wgl targets/libgl-gdi \
189	targets/graw-gdi targets/graw-null  targets/graw-xlib \
190	state_trackers/hgl targets/haiku-softpipe \
191	tools
192
193
194##
195## Gallium tests
196##
197
198if HAVE_GALLIUM_TESTS
199SUBDIRS += \
200	tests/trivial \
201	tests/unit
202endif
203
204EXTRA_DIST += \
205	tests/graw \
206	tests/python
207