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