1 # Copyright © 2017 Dylan Baker
2 # Copyright © 2017 Intel Corporation
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:
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
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
22 inc_gallium_drivers = include_directories('drivers')
23 inc_gallium_winsys = include_directories('winsys')
26 subdir('auxiliary/pipe-loader')
27 subdir('drivers/ddebug')
28 subdir('drivers/noop')
29 subdir('drivers/trace')
30 subdir('drivers/rbug')
31 subdir('winsys/sw/null')
33 subdir('winsys/sw/dri')
37 if with_gallium_drisw_kms
38 subdir('winsys/sw/kms-dri')
42 subdir('winsys/sw/wrapper')
43 if with_platform_haiku
44 subdir('winsys/sw/hgl')
47 if meson.version().version_compare('< 0.44.0')
48 error('SWR requires meson 0.44.0 or greater.')
52 driver_swr = declare_dependency()
54 if with_gallium_softpipe
55 subdir('drivers/softpipe')
57 subdir('drivers/llvmpipe')
60 driver_swrast = declare_dependency()
62 if with_gallium_r300 or with_gallium_radeonsi or with_gallium_r600
63 subdir('winsys/radeon/drm')
66 subdir('drivers/r300')
68 driver_r300 = declare_dependency()
71 subdir('drivers/r600')
73 driver_r600 = declare_dependency()
75 if with_gallium_radeonsi
76 subdir('winsys/amdgpu/drm')
77 subdir('drivers/radeon')
78 subdir('drivers/radeonsi')
80 driver_radeonsi = declare_dependency()
82 if with_gallium_nouveau
83 subdir('winsys/nouveau/drm')
84 subdir('drivers/nouveau')
86 driver_nouveau = declare_dependency()
88 if with_gallium_freedreno
89 subdir('winsys/freedreno/drm')
90 subdir('drivers/freedreno')
92 driver_freedreno = declare_dependency()
95 subdir('winsys/vc4/drm')
98 driver_vc4 = declare_dependency()
100 if with_gallium_pl111
101 subdir('winsys/pl111/drm')
103 driver_pl111 = declare_dependency()
106 subdir('winsys/vc5/drm')
107 subdir('drivers/vc5')
109 driver_vc5 = declare_dependency()
111 if with_gallium_etnaviv
112 subdir('winsys/etnaviv/drm')
113 subdir('drivers/etnaviv')
115 driver_etnaviv = declare_dependency()
118 subdir('winsys/imx/drm')
120 driver_imx = declare_dependency()
123 subdir('winsys/i915/drm')
124 subdir('drivers/i915')
126 driver_i915 = declare_dependency()
129 subdir('winsys/svga/drm')
130 subdir('drivers/svga')
132 driver_svga = declare_dependency()
134 if with_gallium_virgl
135 subdir('winsys/virgl/drm')
136 subdir('winsys/virgl/vtest')
137 subdir('drivers/virgl')
139 driver_virgl = declare_dependency()
141 if with_gallium_vdpau
142 subdir('state_trackers/vdpau')
145 subdir('state_trackers/xvmc')
148 subdir('state_trackers/omx_bellagio')
151 subdir('state_trackers/va')
154 subdir('state_trackers/xa')
156 if with_gallium_st_nine
157 subdir('state_trackers/nine')
159 if with_platform_haiku
160 subdir('state_trackers/hgl')
162 if with_gallium_opencl
163 # TODO: this isn't really clover specific, but ATM clover is the only
165 subdir('targets/pipe-loader')
167 if meson.version().version_compare('< 0.44.0')
168 error('OpenCL requires meson 0.44.0 or greater.')
170 subdir('state_trackers/clover')
171 subdir('targets/opencl')
174 subdir('state_trackers/dri')
175 subdir('targets/dri')
177 if with_osmesa == 'gallium'
178 subdir('state_trackers/osmesa')
179 subdir('targets/osmesa')
181 if with_glx == 'gallium-xlib'
182 subdir('winsys/sw/xlib')
183 subdir('state_trackers/glx/xlib')
184 subdir('targets/libgl-xlib')
186 if with_gallium_vdpau
187 subdir('targets/vdpau')
190 subdir('targets/xvmc')
193 subdir('targets/omx-bellagio')
201 if with_platform_haiku
202 subdir('targets/haiku-softpipe')
204 if with_gallium_st_nine
205 subdir('targets/d3dadapter9')