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