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