iris: Make iris_has_color_unresolved more generic
[mesa.git] / src / gallium / meson.build
1 # Copyright © 2017 Dylan Baker
2 # Copyright © 2017-2018 Intel Corporation
3
4 # Permission is hereby granted, free of charge, to any person obtaining a copy
5 # of this software and associated documentation files (the "Software"), to deal
6 # in the Software without restriction, including without limitation the rights
7 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 # copies of the Software, and to permit persons to whom the Software is
9 # furnished to do so, subject to the following conditions:
10
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
13
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 # SOFTWARE.
21
22 inc_gallium_drivers = include_directories('drivers')
23 inc_gallium_winsys = include_directories('winsys')
24 inc_gallium_winsys_sw = include_directories('winsys/sw')
25
26 subdir('auxiliary')
27 subdir('auxiliary/pipe-loader')
28 subdir('winsys/sw/null')
29 if with_dri
30 subdir('winsys/sw/dri')
31 else
32 libswdri = []
33 endif
34 if with_gallium_drisw_kms
35 subdir('winsys/sw/kms-dri')
36 else
37 libswkmsdri = []
38 endif
39 if with_platform_windows
40 subdir('winsys/sw/gdi')
41 else
42 libwsgdi = null_dep
43 endif
44 subdir('winsys/sw/wrapper')
45 if with_platform_haiku
46 subdir('winsys/sw/hgl')
47 endif
48 if with_gallium_swr
49 subdir('drivers/swr')
50 else
51 driver_swr = declare_dependency()
52 endif
53 if with_gallium_softpipe
54 subdir('drivers/softpipe')
55 if with_llvm
56 subdir('drivers/llvmpipe')
57 endif
58 else
59 driver_swrast = declare_dependency()
60 endif
61 if with_gallium_r300 or with_gallium_radeonsi or with_gallium_r600
62 subdir('winsys/radeon/drm')
63 endif
64 if with_gallium_r300
65 subdir('drivers/r300')
66 else
67 driver_r300 = declare_dependency()
68 endif
69 if with_gallium_r600
70 subdir('drivers/r600')
71 else
72 driver_r600 = declare_dependency()
73 endif
74 if with_gallium_radeonsi
75 subdir('winsys/amdgpu/drm')
76 subdir('drivers/radeonsi')
77 else
78 driver_radeonsi = declare_dependency()
79 endif
80 if with_gallium_nouveau
81 subdir('winsys/nouveau/drm')
82 subdir('drivers/nouveau')
83 else
84 driver_nouveau = declare_dependency()
85 endif
86 if with_gallium_freedreno
87 subdir('winsys/freedreno/drm')
88 subdir('drivers/freedreno')
89 else
90 driver_freedreno = declare_dependency()
91 endif
92 if with_gallium_vc4
93 subdir('winsys/vc4/drm')
94 subdir('drivers/vc4')
95 else
96 driver_vc4 = declare_dependency()
97 endif
98 if with_gallium_panfrost
99 subdir('winsys/panfrost/drm')
100 subdir('drivers/panfrost')
101 else
102 driver_panfrost = declare_dependency()
103 endif
104 if with_gallium_etnaviv
105 subdir('winsys/etnaviv/drm')
106 subdir('drivers/etnaviv')
107 else
108 driver_etnaviv = declare_dependency()
109 endif
110 if with_gallium_kmsro
111 subdir('winsys/kmsro/drm')
112 else
113 driver_kmsro = declare_dependency()
114 endif
115 if with_gallium_v3d
116 subdir('winsys/v3d/drm')
117 subdir('drivers/v3d')
118 else
119 driver_v3d = declare_dependency()
120 endif
121 if with_gallium_tegra
122 subdir('winsys/tegra/drm')
123 subdir('drivers/tegra')
124 else
125 driver_tegra = declare_dependency()
126 endif
127 if with_gallium_iris
128 subdir('winsys/iris/drm')
129 subdir('drivers/iris')
130 else
131 driver_iris = declare_dependency()
132 endif
133 if with_gallium_i915
134 subdir('winsys/i915/drm')
135 subdir('drivers/i915')
136 else
137 driver_i915 = declare_dependency()
138 endif
139 if with_gallium_svga
140 subdir('winsys/svga/drm')
141 subdir('drivers/svga')
142 else
143 driver_svga = declare_dependency()
144 endif
145 if with_gallium_virgl
146 subdir('winsys/virgl/common')
147 subdir('winsys/virgl/drm')
148 subdir('winsys/virgl/vtest')
149 subdir('drivers/virgl')
150 else
151 driver_virgl = declare_dependency()
152 endif
153 if with_gallium_lima
154 subdir('winsys/lima/drm')
155 subdir('drivers/lima')
156 else
157 driver_lima = declare_dependency()
158 endif
159
160 if with_gallium_zink
161 subdir('drivers/zink')
162 else
163 driver_zink = declare_dependency()
164 endif
165
166 if with_gallium_opencl
167 # TODO: this isn't really clover specific, but ATM clover is the only
168 # consumer
169 subdir('targets/pipe-loader')
170
171 subdir('frontends/clover')
172 subdir('targets/opencl')
173 endif
174 if with_dri
175 subdir('frontends/dri')
176 subdir('targets/dri')
177 endif
178 if with_osmesa == 'gallium'
179 subdir('frontends/osmesa')
180 subdir('targets/osmesa')
181 endif
182 if with_glx == 'gallium-xlib'
183 subdir('winsys/sw/xlib')
184 subdir('frontends/glx/xlib')
185 subdir('targets/libgl-xlib')
186 endif
187 if with_gallium_vdpau
188 subdir('frontends/vdpau')
189 subdir('targets/vdpau')
190 endif
191 if with_gallium_xvmc
192 subdir('frontends/xvmc')
193 subdir('targets/xvmc')
194 endif
195 if with_gallium_omx != 'disabled'
196 subdir('frontends/omx')
197 subdir('targets/omx')
198 endif
199 if with_gallium_va
200 subdir('frontends/va')
201 subdir('targets/va')
202 endif
203 if with_gallium_xa
204 subdir('frontends/xa')
205 subdir('targets/xa')
206 endif
207 if with_platform_haiku
208 subdir('frontends/hgl')
209 subdir('targets/haiku-softpipe')
210 endif
211 if with_gallium_st_nine
212 subdir('frontends/nine')
213 subdir('targets/d3dadapter9')
214 endif
215 if with_platform_windows
216 subdir('frontends/wgl')
217 subdir('targets/libgl-gdi')
218 endif
219 if with_tests
220 subdir('targets/graw-null')
221 if with_platform_windows
222 subdir('targets/graw-gdi')
223 elif with_glx == 'gallium-xlib'
224 subdir('targets/graw-xlib')
225 endif
226 subdir('tests')
227 endif
228 if with_swrast_vk
229 subdir('frontends/vallium')
230 subdir('targets/vallium')
231 endif